User Guide
Chapter 16: Connecting to LDAP Directories 253
• Build applications that incorporate data from directory queries in their
processes.
Working with LDAP Directories
The CFLDAP tag allows you to work with LDAP directories in the following ways. You
can:
• View the directory schema
• Search an LDAP directory
• Process the results of querying an LDAP directory (OUTPUT)
Viewing the Directory Schema
LDAP 3.0 now supports access to a directory’s schema information as part of a special
entry in the root DN. You can access this information using a ColdFusion query.
To view the schema for an LDAP directory:
1. Create a new file in Studio.
2. Modify the file so that it appears as follows:
<HEAD>
<TITLE>LDAP schema</TITLE>
</HEAD>
<BODY>
<CFLDAP
NAME="EntryList"
SERVER="testldap.company.com"
ACTION="QUERY"
ATTRIBUTES="dn, subschemasubentry"
SCOPE="BASE"
FILTER="objectclass=*"
START=""
>
<CFOUTPUT QUERY="EntryList">
DN: Root DSE<BR>
subschemaSubEntry: #subschemasubentry#<BR><BR>
</CFOUTPUT>
<P><P><P>
Use that DN to get the schema attributes...
<P>
<CFLDAP NAME="EntryList2"
SERVER="testldap.company.com"
ACTION="Query"