Skip to content

Login search filter #10

@AngryAngryHippos

Description

@AngryAngryHippos

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions