shaozi / ldap-authentication

🔐🔐🔐 A simple Nodejs Async LDAP authentication library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to search for group membership where the user match is not the "dn" attribute on the user object

billneff79 opened this issue · comments

The _searchUserGroups method currently assumes that the attribute to match on the user object for group membership is dn:

filter: `(&(objectclass=${groupClass})(${groupMemberAttribute}=${user.dn}))`,

In our ldap, one of the ways we search for group membership is actually uid, so we need the ability to configure an alternative to the default of dn for matching.

Thanks for merging @shaozi . Can you do a release to npm with this in it?

published

Awesome! I pulled it down and it's working well. Thanks again @shaozi !