HP UX Red Hat Direry Server Software manual Supported Search Types, Search Type Operator Suffix

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 587
Image 587

Supported Search Types

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

4.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.

Search Type

Operator

Suffix

 

 

 

Less-than

<

.1

 

 

 

Less-than or equal-to

<=

.2

 

 

 

Equality

=

.3

 

 

 

Greater-than or equal-to

>=

.4

 

 

 

Greater-than

>

.5

 

 

 

567

Page 587
Image 587
HP UX Red Hat Direry Server Software manual Supported Search Types, Search Type Operator Suffix