s4-dsdb: Replace any existing lastKnownParent attribute during delete
authorAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jul 2012 00:47:57 +0000 (10:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jul 2012 12:15:29 +0000 (14:15 +0200)
This allows a lastKnownParent from LostAndFound to be replaced.

Andrew Bartlett

source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 91bc6c95115055fe43e9f7fa67f9e1ed057a35e2..4bfbee17609c0a07738785c3c2b5082b0830ad2b 100644 (file)
@@ -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){