Changing A Directory Entry's Dn; Advanced Topics; Specifying An Attribute That Includes A Comma Or Semicolon - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

Changing a directory entry's DN

To change the DN of an entry, you must provide the following information in the
dn="original DN"
action="modifyDN"
attributes="dn=new DN"
For example:
<cfldap action="modifyDN"
dn="#old_UID#, ou=People, o=Airius.com"
attributes="uid=#newUID#"
server=#myServer#
username=#myUserName#
password=#myPassword#>
The new DN and the entry attributes must conform to the directory schema; therefore, you
cannot move entries arbitrarily in a directory tree. You can only modify a leaf only. For example,
you cannot modify the group name if the group has children.
Note: LDAP v2 does not let you change entry DNs.

Advanced topics

The following sections present advanced topics that enable you to use LDAP directories more
effectively.

Specifying an attribute that includes a comma or semicolon

LDAP attribute values can contain commas. The
attribute values in a value list. Similarly, an attribute can contain a semicolon, which
normally uses to delimit (separate) attributes in an attribute list. To override the default separator
and delimiter characters, you use the
For example, assume you want to add the following attributes to an LDAP entry:
cn=Proctor, Goodman, and Jones
description=Friends of the company; Rationalists
Use the
cfldap
<cfldap action="modify"
modifyType="add"
attributes="cn=Proctor, Goodman, and Jones: description=Friends
of the company; Rationalists"
dn="uid=goodco, ou=People, o=Airius.com"
separator="&"
delimiter=":"
server=#myServer#
username=#myUserName#
password=#myPassword#>
cfldap
tag in the following way:
tag normally uses commas to separate
cfldap
tag
and
separator
delimiter
tag:
cfldap
cfldap
attributes.

Advanced topics

497

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents