HP-UX Directory Server 8.1 administrator guide

The syntax for each of these options is discussed in the following sections:
“Using an OID for the matching rule”
“Using a language tag for the matching rule”
“Using an OID and suffix for the matching rule”
“Using a language tag and suffix for the matching rule”
B.5.1.1.1 Using an OID for the matching rule
Each locale supported by the Directory Server has an associated collation order OID. For a list
of locales supported by the directory server and their associated OIDs, see Table D-1 “Supported
locales”.
The collation order OID can be used in the matching rule portion of the matching rule filter as
follows:
attr:OID:=(relational_operator value)
The relational operator is included in the value portion of the string, separated from the value
by a single space. For example, to search for all departmentNumber attributes that are at or
after N4709 in the Swedish collation order, use the following filter:
departmentNumber:2.16.840.1.113730.3.3.2.46.1:=>= N4709
B.5.1.1.2 Using a language tag for the matching rule
Each locale supported by the Directory Server has an associated language tag. For a list of locales
supported by the directory server and their associated language tags, see Table D-1 “Supported
locales”.
The language tag can be used in the matching rule portion of the matching rule filter as follows:
attr:language-tag:=(relational_operator value)
The relational operator is included in the value portion of the string, separated from the value
by a single space. For example, to search the directory for all description attributes with a value
of estudiante using the Spanish collation order, use the following filter:
cn:es:== estudiante
B.5.1.1.3 Using an OID and suffix for the matching rule
As an alternative to using a relational operator-value pair, append a suffix that represents a
specific operator to the OID in the matching rule portion of the filter. Combine the OID and suffix
as follows:
attr: OID+suffix:=value
For example, to search for businessCategory attributes with the value softwareprodukte
in the German collation order, use the following filter:
businessCategory:2.16.840.1.113730.3.3.2.7.1.3:=softwareprodukte
The .3 in the previous example is the equality suffix.
For a list of locales supported by the Directory Server and their associated OIDs, 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.1.4 Using a language tag and suffix for the matching rule
As an alternative to using a relational operator-value pair, append a suffix that represents a
specific operator to the language tag in the matching rule portion of the filter. Combine the
language tag and suffix as follows:
attr: language-tag+suffix:=value
For example, to search for all surnames that come at or after La Salle in the French collation
order, use the following filter:
sn:fr.4:=La Salle
B.5 Searching an internationalized directory 565