From: Andrew Bartlett Date: Tue, 31 Jul 2012 00:47:57 +0000 (+1000) Subject: s4-dsdb: Replace any existing lastKnownParent attribute during delete X-Git-Tag: samba-4.0.0beta5~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d1b8ff8a7b803601f8142396e659d0f1dbef331;p=thirdparty%2Fsamba.git s4-dsdb: Replace any existing lastKnownParent attribute during delete This allows a lastKnownParent from LostAndFound to be replaced. Andrew Bartlett --- 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){