User Guide

Table Of Contents
532 Chapter 23: Managing LDAP Directories
<cfldap action="add"
attributes="#attributeList#"
dn="uid=#Trim(Form.uid)#,
ou=People, o=Airius.com"
server=#myServer#
username=#myUserName#
password=#myPassword#>
<cfoutput><h3>Entry for User ID
#Form.uid# has been added</h3>
</cfoutput>
</cfif>
</cfif>
</cfif>
Adds the new entry to the directory.
<cfform action="update_ldap.cfm"
method="post">
<table>
<tr><td>Full Name:</td>
<td><cfinput type="Text"
name="fullName"
value=#fullNameValue#
size="20"
maxlength="30"
tabindex="1"></td>
</tr>
.
.
.
<tr><td colspan="2">
<input type="Submit"
name="action"
value="Add"
tabindex="6"></td>
</tr>
</table>
<br>
*All fields are required for Add<br>
</cfform>
Outputs the data entry form, formatted as a table.
Each
cfinput field always has a value, set by the
value attribute when the page is called. The value
attribute lets ColdFusion update the form contents
when the form is redisplayed after the user clicks
Add. The code that handles cases in which the user
fails to enter all the required data uses this feature.
Code Description