This discussion is archived
1 Reply Latest reply: Aug 13, 2012 5:32 PM by EJP RSS

LdapTemplate.rename is keeping the old entry also.

916276 Newbie
Currently Being Moderated
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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points