/** * ************************************************************************* ModDN the data in the * ldap directory for the given search base * * <p>************************************************************************ */ public static void moddnOp(DirContext dirContext, String ddn, String newdn) throws NamingException { log.debug("ddn and newDn= " + ddn + "@@@@" + newdn); if (dirContext == null) { throw new NamingException(CONTEXT_IS_NULL); } dirContext.rename(ddn, newdn); }