summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-09 14:35:46 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-09 18:18:25 +1100
commit33976711e349c9b5e2ddcacbba3d87acabfae75a (patch)
tree610023afd26ba4879eaebed3e58ffdb7ca46d509 /source4/dsdb/samdb
parent707cd30cda11acdcad59cfdb6743eb822f69f5ba (diff)
downloadsamba-33976711e349c9b5e2ddcacbba3d87acabfae75a.tar.gz
samba-33976711e349c9b5e2ddcacbba3d87acabfae75a.tar.bz2
samba-33976711e349c9b5e2ddcacbba3d87acabfae75a.zip
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
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c5
1 files changed, 4 insertions, 1 deletions
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;