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