Chapter 16: Connecting to LDAP Directories
<!--- query the LDAP server --->
<CFLDAP Name="AriusList"
<!--- generate a form page for query output --->
<H3> Human Resources Directory for Arius</H3>
<CFFORM ACTION="ariusform_action.cfm">
colheaderbold="yes"
</CFFORM>
<!---delete record --->
<CFLDAP
3.
Change
4.
Change the
5.
Save the page as
To modify a record by adding an attribute:
This example illustrates modifying a record by adding an attribute value to the existing
values. This is a necessary step to overcome the limitations of the MODIFY attribute.
1.
Open a new file in Studio.
2.
Modify the file so that it appears as follows:
SERVER="myserver"
ACTION="QUERY"
ATTRIBUTES="cn,mail,telephonenumber"
SCOPE="SUBTREE"
FILTER="ou=Human Resources"
SORT="cn ASC"
START="o=airius.com">
<CFGRID NAME="ariusgrid" width="350" query="AriusList"
insert="No" delete="No" sort="no" bold="No" italic="No"
appendkey="No" highlighthref="No" griddataalign="LEFT"
gridlines="no" rowheaders="no" rowheaderalign="LEFT"
rowheaderitalic="No" rowheaderbold="No" colheaders="yes"
colheaderalign="LEFT" colheaderitalic="No"
selectmode="BROWSE" picturebar="no">
<CFGRIDCOLUMN NAME="cn" HEADER="Name">
<CFGRIDCOLUMN NAME="mail" HEADER="eMail Address">
<CFGRIDCOLUMN NAME="telephonenumber" HEADER="Phone">
</CFGRID><BR>
SERVER="myserver"
USERNAME="uid=kvaughan, ou=People, o=airius.com"
PASSWORD="bribery"
ACTION="DELETE"
DN="uid=jSmith, ou=People, o=airius.com">
to a valid LDAP server.
myserver
to a valid user id.
uid
ldapadd.cfm
and view it in your browser.
257
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?