An LDAP SearchFilters consists of one or more boolean expressions, with logical LDAP Filter Choices prefixed to the expression list. The boolean expressions use the following format:
Attribute Operator Valuewhere Attribute is a valid LDAP attribute name and Value is the the field value.
The filter syntax supports the =, ~=, <, <=, >, >= and ! operators, and provides limited substring matching using the * operator.
In addition, the syntax also supports calls to matchingRules defined in the LDAP data source.
White space is NOT used as a separator between attribute, LDAP Filter Choices and value, and that string values are NOT specified using quotation marks.
& (...K1...) (...K2...)or with more than two criteria:
(& (...K1...) (...K2...) (...K3...) (...K4...))
(| (...K1...) (...K2...))
or with more than two criteria:
(| (...K1...) (...K2...) (...K3...) (...K4...))
Every AND/OR operation can also be understood as a single criterion:
(|(& (...K1...) (...K2...))(& (...K3...) (...K4...)))means:
(K1 AND K2) OR (K3 AND K4)
The LDAP Filter Choices specifies the conditions that must be met for a record to be included in the recordset (or collection) that results from a query. An LDAP filter has one or more clauses, each enclosed in parentheses. Each clause evaluates to either True or False.
There are various MatchingRules which may be case-sensitive.