dsgetinfo: Set modulesdir when using ldb without ldb_wrap
authorJelmer Vernooij <jelmer@samba.org>
Sat, 4 Sep 2010 22:58:41 +0000 (00:58 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 4 Sep 2010 22:58:41 +0000 (00:58 +0200)
(Is there a particular reason we're not using ldb_wrap here?)

source4/torture/rpc/dsgetinfo.c

index 8cf3edcdd70c053dd7e1a3156c091838cfac073f..7b152d37542b0999c2e6390bcbf8aaac8facbfee 100644 (file)
@@ -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");