summaryrefslogtreecommitdiff
path: root/server/db
diff options
context:
space:
mode:
Diffstat (limited to 'server/db')
-rw-r--r--server/db/sysdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index 7a473186..a86a966b 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -334,6 +334,12 @@ int sysdb_init(TALLOC_CTX *mem_ctx,
return EIO;
}
+ ret = ldb_set_debug(ctx->ldb, ldb_debug_messages, NULL);
+ if (ret != LDB_SUCCESS) {
+ talloc_free(ctx);
+ return EIO;
+ }
+
ret = ldb_connect(ctx->ldb, ctx->ldb_file, 0, NULL);
if (ret != LDB_SUCCESS) {
talloc_free(ctx);