1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

dsgetinfo: Set modulesdir when using ldb without ldb_wrap

(Is there a particular reason we're not using ldb_wrap here?)
This commit is contained in:
Jelmer Vernooij 2010-09-05 00:58:41 +02:00
parent 6185fb4e9e
commit 3c25067724

View 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");