mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
ldb: pass module init errors back to the caller
This makes provision errors clearer in Samba, as we can now get permission denied errors presented from LDB modules. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
262c3de3f8
commit
e76bbef8b7
@ -257,11 +257,12 @@ int ldb_connect(struct ldb_context *ldb, const char *url,
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (ldb_load_modules(ldb, options) != LDB_SUCCESS) {
|
||||
ret = ldb_load_modules(ldb, options);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
ldb_debug(ldb, LDB_DEBUG_FATAL,
|
||||
"Unable to load modules for %s: %s",
|
||||
url, ldb_errstring(ldb));
|
||||
return LDB_ERR_OTHER;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* set the default base dn */
|
||||
|
Loading…
x
Reference in New Issue
Block a user