nginx-auth-ldap icon indicating copy to clipboard operation
nginx-auth-ldap copied to clipboard

Retrieve additional attributes?

Open jandrieu opened this issue 7 years ago • 1 comments

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.

jandrieu avatar Apr 05 '17 22:04 jandrieu

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.

reddare avatar Feb 05 '18 11:02 reddare