12 Jul 2013
 

Rename ldap entry via ldapmodify

Written by fabio

Wow, today I learned a wonderful thing: the ldif syntax to rename/move an ldap/AD entry.

E.g. If you want to rename "mario.rossi" with "Mario Rossi" you can do the following

dn: uid=mario.rossi,ou=people,o=isp
              changetype: modrdn
              newrdn: uid=Mario Rossi
              deleteoldrdn: 1

But you can also move it by the following ldif.

dn: uid=mario.rossi,ou=people,o=isp
              changetype: modrdn
              newrdn: uid=Mario Rossi
              deleteoldrdn: 1
              newsuperior: ou=temp,o=isp
       

« Return