1. Rename the entry using a new value for the naming attribute, and keep the old RDN. For example:
ldapmodify -D adminDN -w password
dn: nsuniqueid=66446001-1dd211b2+uid=adamss,dc=example,dc=com
changetype: modrdn
newrdn: uid=NewValue
deleteoldrdn: 0
2. Remove the old RDN value of the naming attribute and the conflict marker attribute. For example:
ldapmodify -D adminDN -w password
dn: uid=NewValue,dc=example,dc=com
changetype: modify
delete: uid
uid: adamss
-
delete: nsds5ReplConflict
-
NOTE
The unique identifier attribute nsuniqueid cannot be deleted.
For more information on the ldapmodify command, see
Command-Line"
and the Directory Server Configuration, Command, and File Reference.
The Console does not support editing multi-valued RDNs. For example, if there are two servers in
a multi-master mode, an entry can be created on each server with the same user ID, and then the
new entries' RDN changed to the nsuniqueid uid value. Attempting to modify this entry from the
Console returns the error Changes cannot be saved for entries with multi-valued RDNs.
Opening the entry in the advanced mode shows that the naming attribute has been set to
nsuniqueid uid. However, the entry cannot be changed or corrected by changing the user ID and
RDN values to something different. For example, if jdoe was the user ID and it should be changed to
jdoe1, it cannot be done from the Console. Instead, use the ldapmodify command:
dn: cn=John Doe
changetype: modify
replace: uid
uid: jdoe
dn: cn=John Doe
changetype: modrdn
newrdn: uid=jdoe1
deleteoldrdn: 1
8.18.1.2. Renaming an Entry with a Single-Valued Naming Attribute
To rename an entry that has a single-valued naming attribute, do the following:
1. Rename the entry using a different naming attribute, and keep the old RDN. For example:
ldapmodify -D adminDN -w password
dn: nsuniqueid=66446001-1dd211b2+dc=pubs,dc=example,dc=com
Solving Naming Conflicts
Section 2.2, "Managing Entries from the
299
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 - ADMINISTRATION and is the answer not in the manual?
Questions and answers