summaryrefslogtreecommitdiffstats
path: root/server/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-11-24 15:19:28 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-11-25 11:03:12 -0500
commita466888622798d91cf72d547584194c76e133d15 (patch)
tree19592ad4a2b1ddc35777ee98c9f564f225d075d0 /server/db
parentd94e3d10282a9a375cae061d6845b73d01a9ffe1 (diff)
downloadsssd-a466888622798d91cf72d547584194c76e133d15.tar.gz
sssd-a466888622798d91cf72d547584194c76e133d15.tar.xz
sssd-a466888622798d91cf72d547584194c76e133d15.zip
Use ldb modules from build root for tests
Diffstat (limited to 'server/db')
-rw-r--r--server/db/sysdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index b59ffa4c7..5a274fb14 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -1201,6 +1201,10 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
return EIO;
}
+#ifdef SYSDB_TEST
+ ldb_set_modules_dir(ctx->ldb, "./.libs");
+#endif
+
ret = ldb_connect(ctx->ldb, ctx->ldb_file, 0, NULL);
if (ret != LDB_SUCCESS) {
return EIO;