From 6d1b8ff8a7b803601f8142396e659d0f1dbef331 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 31 Jul 2012 10:47:57 +1000 Subject: [PATCH] s4-dsdb: Replace any existing lastKnownParent attribute during delete This allows a lastKnownParent from LostAndFound to be replaced. Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 91bc6c95115..4bfbee17609 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -2987,7 +2987,7 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req) talloc_free(tmp_ctx); return ret; } - msg->elements[el_count++].flags = LDB_FLAG_MOD_ADD; + msg->elements[el_count++].flags = LDB_FLAG_MOD_REPLACE; } switch (next_deletion_state){ -- 2.11.4.GIT