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.