From 33976711e349c9b5e2ddcacbba3d87acabfae75a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Dec 2009 14:35:46 +1100 Subject: s4-dsdb: use dsdb_module_search_dn in repl_meta_data This allows us to search below the current module. That will be important when we start using the results of this search to get the linked attributes meta data right --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 9ed70d96eb..27e4ce0d44 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -45,6 +45,7 @@ #include "param/param.h" #include "libcli/security/dom_sid.h" #include "lib/util/dlinklist.h" +#include "dsdb/samdb/ldb_modules/util.h" struct replmd_private { TALLOC_CTX *la_ctx; @@ -870,7 +871,9 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req) * attribute was changed */ - ret = dsdb_search_dn_with_deleted(ldb, msg, &res, msg->dn, NULL); + ret = dsdb_module_search_dn(module, msg, &res, msg->dn, NULL, + DSDB_SEARCH_SHOW_DELETED | + DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT); if (ret != LDB_SUCCESS) { talloc_free(ac); return ret; -- cgit