public void modifydn ( String dn , String attributes ) throws NamingException { DirContext ctx = new InitialDirContext ( env ) ; ctx . rename ( dn , attributes ) ; ctx . close ( ) ; }
modifies distinguished name attribute for LDAP entries on LDAP server