Operator
Example
&
(&(o=macromedia)
(co=usa))
|
(|(o=macromedia)
(sn=macromedia)
(cn=macromedia))
!
(!(STREET=*))
The Boolean operators
attributes on which they operate. You surround a filter with parentheses and use parentheses to
group conditions.
If the pattern that you are matching contains an asterisk, left parenthesis, right parenthesis,
backslash, or NUL character, you must use the following three-character escape sequence in place
of the character:
Character
*
(
)
\
NUL
For example, to match the common name St*r Industries, use the filter
(cn=St\2Ar Industries).
LDAP v3 supports an extensible match filter that permits server-specific matching rules. For more
information on using extensible match filters, see your LDAP server documentation.
Searching and sorting notes
•
To search for multiple values of a multivalued attribute type, use the & operator to combine
expressions for each attribute value. For example, to search for an entry in which cn=Robert
Jones and cn=Bobby Jones, specify the following filter:
filter="(&(cn=Robert Jones)(cn=Bobby Jones))"
•
You can use object classes as search filter attributes; for example, you can use the following
search filter:
filter="(objectclass=inetorgperson)"
•
To specify how query results are sorted, use the
default, ColdFusion returns sorted results in case-sensitive ascending order. To specify
descending order, case-insensitive sorting, or both, use the
•
ColdFusion requests the LDAP server to do the sorting. This can have the following effects:
The sort order might differ between ColdFusion MX and previous versions.
If you specify sorting and the LDAP server does not support sorting, ColdFusion generates
an error. To sort results from servers that do not support sorting, use a query of queries on
the results.
484
Chapter 23: Managing LDAP Directories
Matches
Entries in which the organization name is "macromedia" and the
country is "usa".
Entries in which the organization name is "macromedia" or the
surname is "macromedia", or the common name is
"macromedia".
Entries that do not contain a StreetAddress attribute.
and
can operate on more than two attributes and precede all of the
&
|
Escape sequence
\2A
\28
\29
\5C
\00
field to identify the attribute(s) to sort. By
sort
sortControl
attribute.
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers