diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-05-28 14:41:00 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-28 15:41:04 -0400 |
commit | 181f25a1fb70d47490c1b82e9e968f77e2fab019 (patch) | |
tree | eefa3942329c0459c4aa5e95fa0b467bd503d109 /server/db | |
parent | 553b185f1c765855fe5f5ce9b29533261f80fcba (diff) | |
download | sssd-181f25a1fb70d47490c1b82e9e968f77e2fab019.tar.gz sssd-181f25a1fb70d47490c1b82e9e968f77e2fab019.tar.bz2 sssd-181f25a1fb70d47490c1b82e9e968f77e2fab019.zip |
Suppress "rootdse" error messages.
We will trap all LDB debug messages and pipe them into our
internal DEBUG() function. LDB FATAL messages will still be
printed by default, WARNING and TRACE functions will be at debug
level 3 and 9, respectively.
Diffstat (limited to 'server/db')
-rw-r--r-- | server/db/sysdb.c | 6 |
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); |