Note:

You cannot rename an RDN if it has children entries because this violates the LDAP protocol.

  1. Run the ldapmodify tool to rename an entry.
    1. Run the changetype, newrdn, and deleteoldrdn directives.

    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