LDAP Authentication

Some of my users login using their email and the rest using their usernames. How will both of them be able to login?

33 views January 2, 2020 0

1. You need to provide a search filter that checks for the username against multiple LDAP attributes.

2. For example, if you have some users who login using their email and some using their username,

the following search filter can be applied:  (&(objectClass=*)(|(mail=?)(cn=?)))

Was this helpful?