HP-UX Directory Server 8.1 administrator guide

For a list of locales supported by the Directory Server and their associated language tags, see
Table D-1 “Supported locales”. For a list of relational operators and their equivalent suffixes, see
Table B-3 “Search types, operators, and suffixes”.
B.5.1.2 Using wildcards in matching rule filters
When performing a substring search using a matching rule filter, use the asterisk (*) character
as a wildcard to represent zero or more characters.
For example, to search for an attribute value that starts with the letter l and ends with the letter
n, enter a l*n in the value portion of the search filter. Similarly, to search for all attribute values
beginning with the letter u, enter a value of u* in the value portion of the search filter.
To search for a value that contains the asterisk (*) character, the asterisk must be escaped with
the designated escape sequence, \5c2a. For example, to search for all employees with
businessCategory attribute values of Example*Net product line, enter the following
value in the search filter:
Example\5c2a*Net product line
B.5.2 Supported search types
The Directory Server supports the following types of international searches:
equality (=)
substring (*)
greater-than (>)
greater-than or equal-to (>=)
less-than (<)
less-than or equal-to (<=)
Approximate, or phonetic, and presence searches are supported only in English.
As with a regular ldapsearch search operation, an international search uses operators to define
the type of search. However, when invoking an international search, either use the standard
operators (=, >=, >, <, <=) in the value portion of the search string, or use a special type of operator,
called a suffix (not to be confused with the directory suffix), in the matching rule portion of the
filter. Table B-3 “Search types, operators, and suffixes” summarizes each type of search, the
operator, and the equivalent suffix.
Table B-3 Search types, operators, and suffixes
SuffixOperatorSearch type
.1
<
Less-than
.2
<=
Less-than or equal-to
.3
=
Equality
.4
>=
Greater-than or equal-to
.5
>
Greater-than
.6
*
Substring
B.5.3 International search examples
The following sections show examples of how to perform international searches on directory
data. Each example gives all the possible matching rule filter formats so that you can become
familiar with the formats and select the one that works best.
B.5.3.1 Less-than example
Performing a locale-specific search using the less-than operator (<), or suffix (.1) searches for
all attribute values that come before the given attribute in a specific collation order.
566 Finding directory entries