HP-UX Directory Server 8.1 administrator guide
description: test
uid: scarter
givenName: scott
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: carter
cn: scott carter
In the access logs, a persistent search is identifies with the tag options=persistent.
[12/Jan/2009:12:51:54 -0500] conn=19636710736396323 op=0 SRCH
base="dc=example,dc=com" scope=2 filter="(objectClass=person)" attrs=ALL
options=persistent
B.5 Searching an internationalized directory
When performing search operations, the Directory Server can sort the results based on any
language for which the server has a supporting collation order. For a listing of the collation orders
supported by the directory, see “Identifying supported locales”.
NOTE:
An LDAPv3 search is required to perform internationalized searches. Therefore, do not specify
the -V2 option on the call for ldapsearch.
This section focuses on the matching rule filter portion of the ldapsearch syntax. For more
information on general ldapsearch syntax, see “LDAP search filters”.
This section covers the following topics:
• “Matching rule filter syntax”
• “Supported search types”
• “International search examples”
B.5.1 Matching rule filter syntax
A matching rule provides special guidelines for how the directory compares strings during a
search operation. In an international search, the matching rule tells the system what collation
order and operator to use when performing the search operation. For example, a matching rule
in an international search might tell the server to search for attribute values that come at or after
llama in the Spanish collation order. The syntax of the matching rule filter is as follows:
attr:matchingRule:=value
• attr is an attribute belonging to entries being searched, such as cn or mail.
• matchingRule is a string that identifies either the collation order or the collation order
and a relational operator, depending on the preferred format. For a discussion of matching
rule formats, see “Matching rule formats”.
• value is either the attribute value to search for or a relational operator plus the attribute
value to search for. The syntax of the value portion of the filter depends on the matching
rule format used.
B.5.1.1 Matching rule formats
The matching rule portion of a search filter can be represented in any several ways, and which
one should be used is a matter of preference:
• As the OID of the collation order for the locale on which to base the search.
• As the language tag associated with the collation order on which to base the search.
• As the OID of the collation order and a suffix that represents a relational operator.
• As the language tag associated with the collation order and a suffix that represents a relational
operator.
564 Finding directory entries