repl: Enforce that we have parent objects for all replicated objects
commit449271defc25d66bf84afa7f9b3c9591bbc762bf
authorAndrew Bartlett <abartlet@samba.org>
Wed, 9 Dec 2015 04:05:56 +0000 (9 17:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 6 Jun 2016 14:36:22 +0000 (6 16:36 +0200)
tree63716efa479b9002ded6db981fe2860f7eccafb6
parent2d67128814f27731d1cd7d137e822c894ab87a4b
repl: Enforce that we have parent objects for all replicated objects

The creating of replicated objects without their parent object allows database corruption as they can end up under
the wrong object.  We need to re-try the replication with the DRSUAPI_DRS_GET_ANC flag
set to get the objects in tree order.

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