258
<!--- modify a record, preserving
<!--- You must include the existing attribute
values plus the new one you want to add. In this
case we are adding a unique member gfarmer to
the Accounting Managers. If we did not include
the existing the existing unique members scarter
and tmorris then they would no longer be unique
members. The modify really is doing a replace on
this attribute. For the next release of ColdFusion
we will provide an option to just update the attribute.
Multiple values for a single attribute are separated
by a comma.
comma you must escape it by adding an extra comma. For
example the uniquemember value uid=scarter,ou=groups,
o=airius.com must be entered as uid=scarter,,ou=groups,,
o=airius.com Be careful when you do this modify or you
can remove attribute values you did not intend to! --->
<!--- ATTRIBUTES="uniquemember=uid=scarter,,ou=People,,o=airius.com,
uid=tmorris,,ou=People,,o=airius.com,
uid=gfarmer,,ou=People,,o=airius.com" --->
<CFLDAP SERVER="myserver"
3.
Change
4.
Change the
5.
Save the page as
To insert or update an entry:
1.
Open a new file in Studio.
2.
Modify the file so that it appears as follows:
<!--- If the update parameter is sent
<!--- If the insert parameter is sent
<CFIF IsDefined(rename_dn)>
other existing attributes --->
If a single attribute value contains a
ACTION="Modify"
USERNAME="uid=kvaughan, ou=People, o=airius.com"
PASSWORD="bribery"
ATTRIBUTES="uniquemember=uid=scarter,,ou=People,,o=airius.com,
uid=tmorris,,ou=People,,o=airius.com,
id=gfarmer,,ou=People,,o=airius.com"
DN="cn=Accounting Managers, ou=groups; o=airius.com">
to a valid LDAP server.
myserver
to a valid user id.
uid
ldapaddattr.cfm
then run this update --->
then run this insert --->
<CFLDAP Name="CustomerRename"
SERVER="myserver"
USERNAME="cn=Directory Manager,
o=Ace Industry, c=US"
Developing Web Applications with ColdFusion
and view it in your browser.
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?