...
This page describes the way we generate reverse LDIF, for each operations. Reverse LDIF can be applied on a server in order to revert some changes done. The only condition is that they must be played in the exact reverse order.
Prerequisite
Each reverse LDIF must contains a revision number which identify uniquely its order : R-ldif-rev.
We should not store a revert LDIF if the operation has failed (for any reason).
...