summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-09 15:20:48 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-09 21:39:25 +1000
commitb2ea0ca3d6280902135942f61cd3f28daecf77c1 (patch)
treeef064384acb20ed0a6b74ab91db19faaeabd5caf /source4/dsdb/samdb/ldb_modules/naming_fsmo.c
parent22d5a9655042a09a425954d5ec54af55fb6111a4 (diff)
downloadsamba-b2ea0ca3d6280902135942f61cd3f28daecf77c1.tar.gz
samba-b2ea0ca3d6280902135942f61cd3f28daecf77c1.tar.bz2
samba-b2ea0ca3d6280902135942f61cd3f28daecf77c1.zip
s4-dsdb Change debug levels for startup messages
We should make the 'common' error not show up, but the unusal case fatal. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/naming_fsmo.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/naming_fsmo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/naming_fsmo.c b/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
index 3f4c892b5e..3e45c2e647 100644
--- a/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
+++ b/source4/dsdb/samdb/ldb_modules/naming_fsmo.c
@@ -52,10 +52,10 @@ static int naming_fsmo_init(struct ldb_module *module)
naming_dn = samdb_partitions_dn(ldb, mem_ctx);
if (!naming_dn) {
- ldb_debug(ldb, LDB_DEBUG_WARNING,
- "naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)\n");
+ ldb_debug_set(ldb, LDB_DEBUG_FATAL,
+ "naming_fsmo_init: unable to determine partitions dn");
talloc_free(mem_ctx);
- return ldb_next_init(module);
+ return LDB_ERR_OPERATIONS_ERROR;
}
naming_fsmo = talloc_zero(mem_ctx, struct dsdb_naming_fsmo);
@@ -69,8 +69,8 @@ static int naming_fsmo_init(struct ldb_module *module)
naming_attrs,
DSDB_FLAG_NEXT_MODULE);
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- ldb_debug(ldb, LDB_DEBUG_WARNING,
- "naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)\n");
+ ldb_debug(ldb, LDB_DEBUG_TRACE,
+ "naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details)");
talloc_free(mem_ctx);
return ldb_next_init(module);
}