Renaming an entry
Rename an entry by changing the relative distinguished name (RDN) of an entry.
About this task
|
You cannot rename an RDN if it has children entries because this violates the LDAP protocol. |
Steps
-
Run the
ldapmodifytool to rename an entry.-
Run the
changetype,newrdn, anddeleteoldrdndirectives.Example:
The following command changes
uid=user.14touid=user.2014and uses thechangetype,newrdn, anddeleteoldrdndirectives.$ bin/ldapmodify dn: uid=user.14,ou=People,dc=example,dc=com changetype:moddn newrdn: uid=user.2014 deleteoldrdn: 1
-