summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
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
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')
-rw-r--r--source4/dsdb/samdb/ldb_modules/naming_fsmo.c10
-rw-r--r--source4/dsdb/samdb/ldb_modules/pdc_fsmo.c10
2 files changed, 10 insertions, 10 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);
}
diff --git a/source4/dsdb/samdb/ldb_modules/pdc_fsmo.c b/source4/dsdb/samdb/ldb_modules/pdc_fsmo.c
index 9bf49dad97..d5ff1dcde5 100644
--- a/source4/dsdb/samdb/ldb_modules/pdc_fsmo.c
+++ b/source4/dsdb/samdb/ldb_modules/pdc_fsmo.c
@@ -51,10 +51,10 @@ static int pdc_fsmo_init(struct ldb_module *module)
pdc_dn = ldb_get_default_basedn(ldb);
if (!pdc_dn) {
- ldb_debug(ldb, LDB_DEBUG_WARNING,
- "pdc_fsmo_init: no domain dn present: (skip loading of domain details)\n");
+ ldb_debug_set(ldb, LDB_DEBUG_FATAL,
+ "pdc_fsmo_init: could not determine default basedn");
talloc_free(mem_ctx);
- return ldb_next_init(module);
+ return LDB_ERR_OPERATIONS_ERROR;
}
pdc_fsmo = talloc_zero(mem_ctx, struct dsdb_pdc_fsmo);
@@ -68,8 +68,8 @@ static int pdc_fsmo_init(struct ldb_module *module)
pdc_attrs,
DSDB_FLAG_NEXT_MODULE);
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- ldb_debug(ldb, LDB_DEBUG_WARNING,
- "pdc_fsmo_init: no domain object present: (skip loading of domain details)\n");
+ ldb_debug(ldb, LDB_DEBUG_TRACE,
+ "pdc_fsmo_init: no domain object present: (skip loading of domain details)");
talloc_free(mem_ctx);
return ldb_next_init(module);
} else if (ret != LDB_SUCCESS) {