HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

deleteoldrnd - specifies whether the old RDN has to be deleted or not. If it is 0 old RDN is
retained and if non-zero the old RDN is deleted.
Moving an Entry to a New Parent
Moving an entry to a new parent requires setting two attributes: newrdn and newSuperior:
ldapmodify -D "cn=directory manager" -w secret -p 389 -h server.example.com
dn: uid=jsusan,ou=Engineering,ou=People,dc=example,dc=com
changetype: modrdn
newrdn: uid=jsusan
deleteoldrdn: 1
newSuperior: ou=Administration,ou=People,dc=example,dc=com
Here newrdn - specifies the RDN of the moved entry.
newSuperior - specifies the DN of the new parent entry.
146 Creating Directory Entries