HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3332, November 2013)
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.
The syntax for each of these options is discussed in the following sections:
• “Using an OID for the matching rule” (page 565)
• “Using a language tag for the matching rule” (page 565)
• “Using an OID and suffix for the matching rule” (page 565)
• “Using a language tag and suffix for the matching rule” (page 566)
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 85 (page 574).
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
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 85 (page 574).
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
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 85 (page
574). For a list of relational operators and their equivalent suffixes, see Table 83 (page 566).
Searching an internationalized directory 565