From 181f25a1fb70d47490c1b82e9e968f77e2fab019 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 28 May 2009 14:41:00 -0400 Subject: 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. --- server/confdb/confdb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/confdb') diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index 0c30d4722..c13347353 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -660,6 +660,12 @@ int confdb_init(TALLOC_CTX *mem_ctx, talloc_free(cdb); return EIO; } + ret = ldb_set_debug(cdb->ldb, ldb_debug_messages, NULL); + if (ret != LDB_SUCCESS) { + DEBUG(0,("Could not set up debug fn.\n")); + talloc_free(cdb); + return EIO; + } *cdb_ctx = cdb; -- cgit