nginx-auth-ldap
nginx-auth-ldap copied to clipboard
Retrieve additional attributes?
Is it possible to retrieve additional attributes from the LDAP server and pass them in a header along with the username/password already in the authorization header?
I'd love to get a display name and email for the current user to pass to my app.
You can edit LDAP filter and change ?sAMAccountName? to ?userPrincipalName? attribute to get users login with names like [email protected] or ?email? for email attribute login.