Search Filter Examples - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

LDAP Search Filters
Table B-2
Search Filter Boolean Operators (Continued)
Operator
Symbol
|
OR
!
NOT
Boolean expressions are evaluated in the following order:

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:
The following filter searches for entries containing the common name
Kultgen
The following filter returns all entries that do not contain the common name
Kultgen
The following filter returns all entries that contain a description attribute that
contains the substring
The following filter returns all entries whose organizational unit is
and whose description field does not contain the substring
The following filter returns all entries whose organizational unit is
and that have Julie Fulmer or Cindy Zwaska as a manager:
598
Red Hat Directory Server Administrator's Guide • May 2005
Description
At least one specified filter must be true for the statement to be true. For example:
(|(filter)(filter)(filter)...)
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))
Innermost to outermost parenthetical expressions first.
All expressions from left to right.
manager=*
. This is also known as an equality search:
cn=Ray Kultgen
:
(!(cn=Ray Kultgen))
X.500
description=*X.500*
(&(ou=Marketing)(!(description=*X.500*)))
(&(ou=Marketing)(|(manager=cn=Julie
Fulmer,ou=Marketing,dc=example,dc=com)(manager=cn=Cindy
Zwaska,ou=Marketing,dc=example,dc=com)))
:
Ray
Ray
Marketing
:
X.500
Marketing

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 7.1

Table of Contents