Red Hat Directory Server 8.0 Administrator's Guide

Multiple search filter components can be combined using Boolean operators expressed in prefix
notation as follows:
(Boolean-operator(filter)(filter)(filter)...)
Boolean-operator is any one of the Boolean operators listed in Table B.2, “Search Filter
Boolean Operators”.
Boolean operators can be combined and nested together to form complex expressions, such
as:
(Boolean-operator(filter)((Boolean-operator(filter)(filter)))
The Boolean operators available for use with search filters include the following:
Operator Symbol Description
AND & All specified filters must be
true for the statement to be
true. For example,
(&(filter)(filter)(filter)...).
OR | At least one specified filter
must be true for the statement
to be true. For example,
(|(filter)(filter)(filter)...)
NOT ! The specified statement must
not be true for the statement
to be true. Only one filter is
affected by the NOT operator.
For example, (!(filter)).
Table B.2. Search Filter Boolean Operators
Boolean expressions are evaluated in the following order:
Innermost to outermost parenthetical expressions first.
All expressions from left to right.
3.1.4. Search Filter Examples
The following filter searches for entries containing one or more values for the manager attribute.
This is also known as a presence search:
Appendix B. Finding Directory Entries
562