LDAP Authentication

What is meant by Search Filter in my LDAP environment?

95 views 0

1. Search Filter is a basic LDAP Query for searching users based on mapping of username to a particular LDAP attribute.

2. The following are some commonly used Search Filters. You will need to use a search filter which uses the attributes specific to your LDAP environment. You can confirm this from your LDAP administrator.

common name (&(objectClass=*)(cn=?))
email (&(objectClass=*)(mail=?))
logon name (&(objectClass=*)(sAMAccountName=?))
(&(objectClass=*)(userPrincipalName=?))
custom attribute where you store your WordPress usernames use (&(objectClass=*)(customAttribute=?))
if you store WordPress usernames in multiple attributes
(e.g. some users login using email and others using their username)
(&(objectClass=*)(|(cn=?)(mail=?)))

Was this helpful?