kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
731 stars 251 forks source link

Retrieve additional attributes? #173

Open jandrieu opened 7 years ago

jandrieu commented 7 years ago

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.

reddare commented 6 years ago

You can edit LDAP filter and change ?sAMAccountName? to ?userPrincipalName? attribute to get users login with names like user@domain.name or ?email? for email attribute login.