summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-02 10:58:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-02 21:28:22 +0000
commitb3fb311173ff6716a19a9e828f7167872bf76638 (patch)
treef2bf37b57fc23349ff0ea64a84ba246baf2b5c8f /source4/lib/ldb/common
parent4a08b2d172c144f831b8c6a282ab990142b9b13d (diff)
downloadsamba-b3fb311173ff6716a19a9e828f7167872bf76638.tar.gz
samba-b3fb311173ff6716a19a9e828f7167872bf76638.tar.bz2
samba-b3fb311173ff6716a19a9e828f7167872bf76638.zip
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 <tridge@samba.org> Autobuild-Date: Tue Nov 2 21:28:22 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c4
1 files changed, 2 insertions, 2 deletions
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;
}