Alternative RDN id

May 23, 2014 at 7:19 AM
Edited May 23, 2014 at 7:20 AM
Hello,

Can I rename entry with LinqToLdap using other attribute (not cn) in rdn? Like that:

uid=testuser,ou=people,dc=example,dc=org

(DirectoryEntry.Rename allow that)
Coordinator
May 23, 2014 at 2:31 PM
Edited May 23, 2014 at 2:31 PM
Yes
context.RenameEntry("uid=testuser,ou=people,dc=example,dc=org", "uid=newtestuser");

OR

conntection.RenameEntry("uid=testuser,ou=people,dc=example,dc=org", "uid=newtestuser")

Signature:

RenameEntry(string currentDistinguishedName, string newName, params DirectoryControl[] controls)
Jul 14, 2014 at 4:08 AM
Edited Jul 14, 2014 at 4:18 AM
Is it possible to set DeleteOldRdn to false for ModifyDNRequest? Because updating dn "cn=Some User Name,..." to "uid=someuser,..." causes object class violation (ldap server asked to delete required cn property).
Coordinator
Jul 14, 2014 at 2:48 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.