Appendix B. Finding Directory Entries
This section focuses on the matching rule filter portion of the ldapsearch syntax. For more
information on general ldapsearch syntax, see
on searching internationalized directories using the Users and Groups portion of the Red Hat
Console, see the online help.
This section covers the following topics:
Section B.4.1, "Matching Rule Filter Syntax"
•
Section B.4.2, "Supported Search Types"
•
Section B.4.3, "International Search Examples"
•
B.4.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
Section B.4.1.1, "Matching Rule
• 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.4.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.
The syntax for each of these options is discussed in the following sections:
Section B.4.1.1.1, "Using an OID for the Matching Rule"
•
Section B.4.1.1.2, "Using a Language Tag for the Matching Rule"
•
Section B.4.1.1.3, "Using an OID and Suffix for the Matching Rule"
•
Section B.4.1.1.4, "Using a Language Tag and Suffix for the Matching Rule"
•
488
Section B.3, "LDAP Search
Formats".
Filters". For information
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 - ADMINISTRATION and is the answer not in the manual?
Questions and answers