Creating Searchable Cfldap Output - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 16: Connecting to LDAP Directories
4.
Change the
5.
Save the page as
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)>
</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"
3.
Change
4.
Change the
5.
Save the page as

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
to a valid user id.
uid
ldapchangeattr.cfm
<CFLDAP Name="LDAPDelete"
SERVER="myserver"
USERNAME="cn=Directory Manager,
o=Ace Industry, c=US"
PASSWORD="testldap"
ACTION="Delete"
DN=#dn#>
SERVER="myserver"
ACTION="Query"
ATTRIBUTES="dn,cn, sn"
SCOPE="SUBTREE"
SORT="cn ASC"
FILTER="(cn>=A)"
START="o=Ace Industry, c=US"
TIMEOUT=30>
to a valid LDAP server.
myserver
to a valid user id.
uid
ldapdeleteattr.cfm
and view it in your browser.
and view it in your browser.
163.
261

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents