sarath sasidharan
sarath sasidharan

Reputation: 5

Is it possible to change the base dn of a user in ldap using java?

My requirement is to migrate the users from ou=people,dc=agroup,dc=com to dc=1a_archive,dc=com using java i just want to know if this is possible? if possible please tell me the solution

Upvotes: 0

Views: 694

Answers (1)

jwilleke
jwilleke

Reputation: 11026

Using the LDAP protocol this requires a ModRDN that would "move" the LDAP Entry. (See link for some examples)

Oracle also shows some simple JNDI examples using Context.rename()

Most LDAP Server Implementations do NOT support the ModifyDNRequest on an LDAP Entry which contain subordinate entries.

Some LDAP Server Implementation include a method to move containers. I am aware the these support moving containers, perhaps with some limitations:

  • Microsoft Active Directory
  • eDirectory

Upvotes: 1

Related Questions