O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required