From: Andrew Bartlett Date: Wed, 25 May 2016 00:36:59 +0000 (+1200) Subject: repl: Allow GetNCChanges DRSUAPI_EXOP_REPL_OBJ to succeed against a deleted object X-Git-Tag: tdb-1.3.10~993 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5967852aa085cd13784b4f994122a78d2ab64845;p=thirdparty%2Fsamba.git repl: Allow GetNCChanges DRSUAPI_EXOP_REPL_OBJ to succeed against a deleted object Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 84d3c6b2c42..cfa13768ea2 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -3984,7 +3984,7 @@ int dsdb_load_udv_v2(struct ldb_context *samdb, struct ldb_dn *dn, TALLOC_CTX *m static const struct timeval tv1970; NTTIME nt1970 = timeval_to_nttime(&tv1970); - ret = ldb_search(samdb, mem_ctx, &r, dn, LDB_SCOPE_BASE, attrs, NULL); + ret = dsdb_search_dn(samdb, mem_ctx, &r, dn, attrs, DSDB_SEARCH_SHOW_RECYCLED|DSDB_SEARCH_SHOW_DELETED); if (ret != LDB_SUCCESS) { return ret; }