User Guide

Table Of Contents
534 Chapter 23: Managing LDAP Directories
<cfset uidValue = GetEntry.uid[1]>
<cfelseif Form.action is "Delete">
<cfldap action="delete"
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 deleted
</h3></cfoutput>
3.
At the end of the code for the Add button (the input tag with Value=Add at the bottom of the
form
), delete the </td> end tag.
4.
After the end of the Add button input tag, add the following code:
&nbsp
<input type="Submit"
name="action"
value="Retrieve"
tabindex="7">
&nbsp
<input type="Submit"
name="action"
value="Delete"
tabindex="8"></td>
5.
Save the file and run it in your browser.