From 1838e40aed71e1c3de9464f5b29406c602749251 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 1 Jun 2009 10:08:59 -0400 Subject: Suppress "rootdse" error messages from the confdb --- server/confdb/confdb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/confdb') diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index c1334735..7c88b25b 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -655,14 +655,15 @@ int confdb_init(TALLOC_CTX *mem_ctx, return EIO; } - ret = ldb_connect(cdb->ldb, confdb_location, 0, NULL); + 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; } - ret = ldb_set_debug(cdb->ldb, ldb_debug_messages, NULL); + + ret = ldb_connect(cdb->ldb, confdb_location, 0, NULL); if (ret != LDB_SUCCESS) { - DEBUG(0,("Could not set up debug fn.\n")); talloc_free(cdb); return EIO; } -- cgit