summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/dirsync.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-15 15:59:23 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-18 09:26:59 +1000
commit16fa0f68bdce39eb19f0fa5486ff231467662b12 (patch)
treeede882987968a283d98e26b7f628d928ffbefbb1 /source4/dsdb/samdb/ldb_modules/dirsync.c
parent23b1d09a5fd9825786343a98f9aab756dd749f95 (diff)
downloadsamba-16fa0f68bdce39eb19f0fa5486ff231467662b12.tar.gz
samba-16fa0f68bdce39eb19f0fa5486ff231467662b12.tar.bz2
samba-16fa0f68bdce39eb19f0fa5486ff231467662b12.zip
s4-dirsync: use dsdb_module_dn_by_guid() not dsdb_find_dn_by_guid() in modules
this prevents us going to the top level of the module stack Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/dirsync.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/dirsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dirsync.c b/source4/dsdb/samdb/ldb_modules/dirsync.c
index 7ed1ed3943..6a5703ab5f 100644
--- a/source4/dsdb/samdb/ldb_modules/dirsync.c
+++ b/source4/dsdb/samdb/ldb_modules/dirsync.c
@@ -522,7 +522,7 @@ skip:
el->name, ldb_dn_get_linearized(copydn)));
return ldb_operr(ldb);
}
- ret = dsdb_find_dn_by_guid(ldb, newmsg, &guid, &tdn);
+ ret = dsdb_module_dn_by_guid(dsc->module, newmsg, &guid, &tdn, req);
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
DEBUG(2, (" Search of guid %s returned 0 objects, skipping it !\n",
GUID_string(newmsg, &guid)));