PingDirectory

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

  1. Run the ldapmodify tool to rename an entry.

    1. Run the changetype, newrdn, and deleteoldrdn directives.

      Example:

      The following command changes uid=user.14 to uid=user.2014 and uses the changetype, newrdn, and deleteoldrdn directives.

      $ bin/ldapmodify
      dn: uid=user.14,ou=People,dc=example,dc=com
      changetype:moddn
      newrdn: uid=user.2014
      deleteoldrdn: 1