Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login search filter #10

Open
AngryAngryHippos opened this issue Aug 3, 2013 · 0 comments
Open

Login search filter #10

AngryAngryHippos opened this issue Aug 3, 2013 · 0 comments

Comments

@AngryAngryHippos
Copy link

I want to do a login search filter by multiple fields, like this:

'(|(sAMAccountName={{username}})(mail={{username}}))'

When I try it, it only allows login by the first critera, in this case, sAMAccountName. I narrowed the bug down to ldapauth.js line 118 - just needs to be a global search and replace:

var searchFilter = self.opts.searchFilter.replace(/{{username}}/g, username);

vesse added a commit to vesse/node-ldapauth-fork that referenced this issue Aug 21, 2013
Use global search/replace to allow eg. OR filters
(see trentm#10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant