Login search filter
AngryAngryHippos opened this issue · 0 comments
AngryAngryHippos commented
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);