Search Filter Syntax
485
B.3.1.1. Using Attributes in Search Filters
When searching for an entry, the attributes associated with that type of entry can be specified, such as
using the
cn
attribute to search for people with a specific common name.
Examples of attributes that people entries include are the following:
•
cn
for the person's common name.
•
sn
for the person's surname, last name, or family name.
•
telephoneNumber
for the person's telephone number.
•
buildingName
for the name of the building in which the person resides.
•
l
for the physical location of the person.
B.3.1.2. Using Operators in Search Filters
The operators that can be used in search filters are listed in
Table B.1, “Search Filter Operators”
.
In addition to these search filters, special filters can be specified to work with a preferred language
collation order. For information on how to search a directory with international charactersets, see
Section B.4, “Searching an Internationalized Directory”
.
Search Type
Operator
Description
Equality
=
Returns entries containing
attribute values that exactly
match the specified value. For
example,
cn=Bob Johnson
Substring
=
string
*
string
Returns entries containing
attributes containing
the specified substring.
For example,
cn=Bob*
cn=*Johnson cn=*John*
cn=B*John
. The asterisk
(*) indicates zero (0) or more
characters.
Greater than or equal to
>=
Returns entries containing
attributes that are greater than
or equal to the specified value.
For example,
buildingname
>= alpha
.
Less than or equal to
<=
Returns entries containing
attributes that are less than or
equal to the specified value.
For example,
buildingname
<= alpha
.
Presence
=*
Returns entries containing one
or more values for the specified
attribute. For example,
cn=*
telephonenumber=*
manager=*
.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...