1 Reply Latest reply: Aug 13, 2012 7:32 PM by EJP RSS

    LdapTemplate.rename is keeping the old entry also.

    916276
      I am using apache DS as LDAP. I want to update the CN entry in the LDAP. I have used the following code. But it creates an new CN entry in the LDAP and keeps the old entry also.
      But I want the old entry to be replaced by the new entry.

      Code snippet:

      import org.springframework.ldap.LdapTemplate;

      private LdapTemplate ldapTemplate;

      +               +
      ldapTemplate.rename(oldDn, newDn);


      Can any one please help me on this.