omniauth-ldap icon indicating copy to clipboard operation
omniauth-ldap copied to clipboard

use current user info as LDAP credential

Open dorren opened this issue 13 years ago • 3 comments

if :bind_dn and :password is not set. this patch fake it by using current login user's info as credential.

In my company (fortune 500), IT dept only creates new LDAP account for real person. So I can't set default credential, this patch resolves such issue.

dorren avatar May 16 '12 02:05 dorren

My org has the same issue

lanrat avatar Aug 17 '13 17:08 lanrat

this PR assumes LDAP can authenticate email constructed from based DN, this might not always be the case for everyone. I suggest to allow bind_dn and password to be passed in as proc, and generate bind_dn and password dynamically.

pyu10055 avatar Dec 13 '13 14:12 pyu10055