omniauth-ldap
omniauth-ldap copied to clipboard
use current user info as LDAP credential
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.
My org has the same issue
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.