Renaming an Entry: Modifying the RDN
Renaming an entry means changing the relative distinguished name (RDN) of the entry. Suppose you would like to rename an entry with the DN uid=bjensen, ou=People, o=airius.com to have the DN uid=babsjensen, ou=People, o=airius.com. The RDN of the entry is uid=bjensen. The LDAPConnection.rename method invokes the LDAP operation to change the RDN of the entry. There are four forms of the rename method. We will look at two of these forms:
public void rename(String DN, String newRDN, boolean deleteOldRDN) throws LDAPException public void rename(String DN, String newRDN, String newParentDN, boolean deleteOldRDN) throws LDAPException
The first form of the rename method is for altering the RDN without moving the ...
Get LDAP Programming with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.