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.
(&(employmentType=*)(!(employmentType=Hired))(!(employmentType=NEW))(!(employmentType=POS))(!(employmentType=REH)))