summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-03-02 17:19:21 +0100
committerStefan Metzmacher <metze@samba.org>2017-03-07 08:28:16 +0100
commit4f1ad9a8b527d50960ec8c253fbfd740eeca1448 (patch)
treeee6b0b618ec76de15400ba2c1018e3177addeaf4
parentf599b6ff9291463f8a1627f445c9bc75d9594c5a (diff)
downloadsamba-4f1ad9a8b527d50960ec8c253fbfd740eeca1448.tar.gz
ldb-samba: remember the error string of a failing bind in ildb_connect()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9048 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 4738754e7d7216f6acf790827459bb5da6b0a110)
-rw-r--r--lib/ldb-samba/ldb_ildap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ldb-samba/ldb_ildap.c b/lib/ldb-samba/ldb_ildap.c
index 65f11dba018..541971f63de 100644
--- a/lib/ldb-samba/ldb_ildap.c
+++ b/lib/ldb-samba/ldb_ildap.c
@@ -863,6 +863,7 @@ static int ildb_connect(struct ldb_context *ldb, const char *url,
return LDB_SUCCESS;
failed:
+ ldb_set_errstring(ldb, ldap_errstr(ildb->ldap, module, status));
talloc_free(module);
if (NT_STATUS_IS_LDAP(status)) {
return NT_STATUS_LDAP_CODE(status);