Previous Topic: How to Set Options for LDAP Attribute NamesNext Topic: LDAP Parameters for External Usergroup Support


How to Use SearchBase DN and Filtering Specifications

The LDAP Authentication Server API uses an OpenLDAP filter specification to help select the proper user account container from a set of all entries associated with the SearchBase DN (for example, the ‑ldapbasedn parameter). The filter specification uses a pre-fix operator format, rather than the more common in-fix operator format. For example, the default filter is the following expression:

(&(objectclass=person)(uid=<uid>))

This expression means: Search for directory entries that meet both of the following criteria:

This expression means: Search for directory entries that meet all of the following criteria:

The time required for the search depends mostly on the selection of the Search Base DN. For example, the following expression searches an entire domain:

DC=mydomain,DC=com

When searching large domains, you can reduce the search time by limiting the search to a specific portion of the entire domain, for example:

OU=North America, DC=mydomain,DC=com