summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-05 00:58:41 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-05 00:58:41 +0200
commit3c250677245e89ce0062db1758c855b051ddef77 (patch)
tree21393069877e5c4e3cb2e09605cfa5aaca0833d7 /source4/torture/rpc
parent6185fb4e9e3d3e654ad9f6325da0f4886013dda6 (diff)
downloadsamba-3c250677245e89ce0062db1758c855b051ddef77.tar.gz
samba-3c250677245e89ce0062db1758c855b051ddef77.tar.bz2
samba-3c250677245e89ce0062db1758c855b051ddef77.zip
dsgetinfo: Set modulesdir when using ldb without ldb_wrap
(Is there a particular reason we're not using ldb_wrap here?)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/dsgetinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/rpc/dsgetinfo.c b/source4/torture/rpc/dsgetinfo.c
index 8cf3edcdd7..7b152d3754 100644
--- a/source4/torture/rpc/dsgetinfo.c
+++ b/source4/torture/rpc/dsgetinfo.c
@@ -87,6 +87,9 @@ static const char *torture_get_ldap_base_dn(struct torture_context *tctx, struct
return NULL;
}
+ ldb_set_modules_dir(ldb,
+ talloc_asprintf(ldb, "%s/ldb", lpcfg_modulesdir(tctx->lp_ctx)));
+
ret = ldb_connect(ldb, ldap_url, 0, NULL);
if (ret != LDB_SUCCESS) {
torture_comment(tctx, "Failed to make LDB connection to target");