HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

buildingName for the name of the building in which the person resides.
l for the physical location of the person.
For a listing of the attributes associated with types of entries, see the HP-UX Directory Server schema
reference.
B.3.2 Using operators in search filters
The operators that can be used in search filters are listed in Table 81 (page 561). 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 “Searching
an internationalized directory” (page 564).
Table 81 Search filter operators
DescriptionOperatorSearch type
Returns entries containing attribute values that exactly match the specified value.
For example, cn=Bob Johnson
=Equality
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.
=string*
string
Substring
Returns entries containing attributes that are greater than or equal to the
specified value. For example, buildingname >= alpha.
>=Greater than or
equal to
Returns entries containing attributes that are less than or equal to the specified
value. For example, buildingname <= alpha.
<=Less than or equal
to
Returns entries containing one or more values for the specified attribute. For
example, cn=* telephonenumber=* manager=*.
=*Presence
Returns entries containing the specified attribute with a value that is
approximately equal to the value specified in the search filter. For example,
~=Approximate
cn~=suret l~=san fransico could return cn=sarette l=san
francisco.
B.3.3 Using compound search filters
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 82 (page 561).
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
Table 82 Search filter Boolean operators
DescriptionSymbolOperator
All specified filters must be true for the statement to be true. For example,
(&(filter)(filter)(filter)...).
&AND
At least one specified filter must be true for the statement to be true. For example,
(|(filter)(filter)(filter)...).
|OR
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)).
!NOT
B.3 LDAP search filters 561