From b3fb311173ff6716a19a9e828f7167872bf76638 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 2 Nov 2010 10:58:49 +1100 Subject: s4-ldb: give the user a hint as to what may be wrong when a backend or module can't be found, give a hint about the LDB_MODULES_PATH environment variable Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Nov 2 21:28:22 UTC 2010 on sn-devel-104 --- source4/lib/ldb/common/ldb_modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 35fa2d21ca..121890771d 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -207,7 +207,7 @@ int ldb_module_connect_backend(struct ldb_context *ldb, if (be == NULL) { ldb_debug(ldb, LDB_DEBUG_FATAL, - "Unable to find backend for '%s'", url); + "Unable to find backend for '%s' - do you need to set LDB_MODULES_PATH?", url); return LDB_ERR_OTHER; } @@ -309,7 +309,7 @@ int ldb_module_load_list(struct ldb_context *ldb, const char **module_list, ops = ldb_find_module_ops(module_list[i]); if (ops == NULL) { - ldb_debug(ldb, LDB_DEBUG_WARNING, "WARNING: Module [%s] not found", + ldb_debug(ldb, LDB_DEBUG_FATAL, "WARNING: Module [%s] not found - do you need to set LDB_MODULES_PATH?", module_list[i]); continue; } -- cgit