usernameAttribute multiple values
myurzep opened this issue Β· comments
Hello! π
Is it possible to specify multiple values in the usernameAttribute
to authorize the user either by name or by email? For example, |(sAMAccountName={{username}})(mail={{username}})
does not work.
Maybe this is planned in the future?
Thank you! π
LDAP authentication has to use the username dn and password to bind. So ldap-authentication can not do what you ask.
You will have to convert the email to username before calling the lib.
Thanks for the answer!