Adobe COLDFUSION 9 Manual page 460

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Operator
Example
&
(&(o=adobe)
(co=usa))
|
(|(o=adobe)
(sn=adobe)
(cn=adobe))
!
(!(STREET=*))
The Boolean operators
and
&
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, use the following three-character escape sequence in place of the character:
Character
Escape sequence
*
\2A
(
\28
)
\29
\
\5C
NUL
\00
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
returns sorted results in case-sensitive ascending order. To specify descending order, case-insensitive sorting, or
both, use the
sortControl
• ColdFusion requests the LDAP server to do the sorting. Doing so can have the following effects:
• The sort order can 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.
Matches
Entries in which the organization name is "adobe" and the country is "usa".
Entries in which the organization name is "adobe" or the surname is "adobe", or the common
name is "adobe".
Entries that do not contain a StreetAddress attribute.
can operate on more than two attributes and precede all of the attributes on which they
|
field to identify the attribute(s) to sort. By default, ColdFusion
sort
attribute.
Last updated 8/5/2010
455

Advertisement

Table of Contents
loading

Table of Contents