LDAP Query Advanced Examples

LDAP Advanced Queries#

These are some examples of more advanced LDAP Query Examples.

Narrow Results#

Often you only want to see the exceptions to values. This example will return all the entries which have a value for employmentType which is NOT:
  • Hired
  • NEW
  • POS
  • REH

Remember that LDAP filters Syntax and Choices are typically case-insensitive.



ExtensibleMatch LDAP SearchFilters offer methods to do Advanced Searches.

Ldapsearch Networkaddress#

Some examples for eDirectory's networkAddress attribute is a good example showing hex values to be escaped.

More Information#

There might be more information for this subject on one of the following: