OpenLDAP 2.3.32
How do I move an entry to a new superior without changing the RDN as well? I cannot find any examples of this (at least, none that works).
dn: uid=dhtest,dc=coreng,dc=com,dc=au changeType: modDN newRDN: dhtest deleteOldRDN: 1 newSuperior: ou=systems,dc=coreng,dc=com,dc=au -
Fails with:
ldapmodify: invalid format (line 6) entry: "uid=dhtest,dc=coreng,dc=com,dc=au" Failed to update entry.
as does:
dn: uid=dhtest,dc=coreng,dc=com,dc=au changeType: modDN newRDN: uid=dhtest deleteOldRDN: 1 newSuperior: ou=systems,dc=coreng,dc=com,dc=au -
I already discovered that I need "newRDN" i.e. just "newSuperior" won't cut it.
Or must I use "ldapmodrdn", and risk a race condition if making several changes to the same entry?