User Guide
Chapter 16: Connecting to LDAP Directories 261
4. Change the uid to a valid user id.
5. Save the page as
ldapchangeattr.cfm and view it in your browser.
To delete an entry:
1. Open a new file in Studio.
2. Modify the file so that it appears as follows:
<!--- If the delete parameter is sent
then run this update --->
<CFIF IsDefined(dn)>
<CFLDAP Name="LDAPDelete"
SERVER="myserver"
USERNAME="cn=Directory Manager,
o=Ace Industry, c=US"
PASSWORD="testldap"
ACTION="Delete"
DN=#dn#>
</CFIF>
<!--- Use CFLDAP to retrieve the common name
and distinguished name for all employees that
have a surname that contains ens and a common
name that is > K. Search starts in the country
US and organization Ace Industry. --->
<CFLDAP Name="EntryList"
SERVER="myserver"
ACTION="Query"
ATTRIBUTES="dn,cn, sn"
SCOPE="SUBTREE"
SORT="cn ASC"
FILTER="(cn>=A)"
START="o=Ace Industry, c=US"
TIMEOUT=30>
3. Change myserver to a valid LDAP server.
4. Change the
uid to a valid user id.
5. Save the page as
ldapdeleteattr.cfm and view it in your browser.
Creating searchable CFLDAP output
An example of building and searching a Verity collection from LDAP data can be found
in “Indexing CFLDAP Query Results” on page 163.