From c1c3b8c14a0df0fed72b9c41afe56c4511b9a6b3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 19 Oct 2016 08:07:02 +1300 Subject: [PATCH 1/2] TODO: dsdb: When collecting tombstoned links to expunge, we need to set DSDB_SEARCH_SHOW_EXTENDED_DN Signed-off-by: Andrew Bartlett --- source4/dsdb/kcc/garbage_collect_tombstones.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/dsdb/kcc/garbage_collect_tombstones.c b/source4/dsdb/kcc/garbage_collect_tombstones.c index ad14d5e..4576d37 100644 --- a/source4/dsdb/kcc/garbage_collect_tombstones.c +++ b/source4/dsdb/kcc/garbage_collect_tombstones.c @@ -68,6 +68,7 @@ static NTSTATUS garbage_collect_tombstones_part(TALLOC_CTX *mem_ctx, ldb_dn_get_linearized(part->dn))); flags = DSDB_SEARCH_SHOW_RECYCLED | + DSDB_SEARCH_SHOW_EXTENDED_DN | DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT | DSDB_SEARCH_REVEAL_INTERNALS; ret = dsdb_search(samdb, tmp_ctx, &res, part->dn, LDB_SCOPE_SUBTREE, -- 2.7.4