Written by
  • email
  • twitter
  • linkedin
  • linkedin

Wow, today I learned a wonderful thing: the ldif syntax to rename an ldap/AD entry. If you want to rename "mario.rossi" with "Mario Rossi" you can do the following.

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
0 VOTINot rated yetNot rated yet
Ti è stato utile questo articolo?
From Tirasa's Blog
The place where we share what we do, learn and discover day by day.
Go to blog >