...
Computing the reverse LDIF for a ModifyDN request follows the algorithm :
...
reverseLdif.deleteOldRdn
...
=
...
true
if modifyDn.newSuperior
...
not empty
then reverseLdif.newSuperior
...
=
...
modifyDn.dn
...
minus
...
the
...
modifyDN.dn.getRDN
...
reverseLdif.newRdn
...
=
...
modifyDn.dn.getRDN
...