diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/Makefile.am | 1 | ||||
-rw-r--r-- | server/db/sysdb.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/server/Makefile.am b/server/Makefile.am index c52db190..198d5c41 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -412,6 +412,7 @@ sysdb_tests_SOURCES = \ tests/sysdb-tests.c \ $(SSSD_UTIL_OBJ) sysdb_tests_CFLAGS = \ + -DSYSDB_TEST \ $(AM_CFLAGS) \ $(CHECK_CFLAGS) sysdb_tests_LDADD = \ diff --git a/server/db/sysdb.c b/server/db/sysdb.c index b59ffa4c..5a274fb1 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; |