dsdb/subtree_rename: Rename the base before we rename children
commitcb32e25fbecb435b840deddf873aea8d89a3c506
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Mar 2016 02:35:21 +0000 (15 15:35 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 1 Jun 2016 08:27:19 +0000 (1 10:27 +0200)
tree4e5013c8ffc03b0b3050619692388435877196f8
parent2d9383e1d4aef758ec2fdaa57203e9a0dbcbca2f
dsdb/subtree_rename: Rename the base before we rename children

Otherwise, we might rename children to be under a different, conflicting, DN.

This would normally be picked up in the transaction rollback, but in replication
the transaction is not aborted for this situation

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/subtree_rename.c