Chapter 8. Managing Replication

To rename an entry that has a multi-valued naming attribute, do the following:

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 Section 2, “Managing Entries from the 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 thensuniqueid 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

344

Page 364
Image 364
HP UX Red Hat Direry Server Software manual Unique identifier attribute nsuniqueid cannot be deleted, 344