summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-03-02 17:19:21 +0100
committerAndrew Bartlett <abartlet@samba.org>2017-03-03 08:59:16 +0100
commit4738754e7d7216f6acf790827459bb5da6b0a110 (patch)
tree3c93a6e5ee746311df5ee611bf67bd7575a1455c
parent57e5bab22f4bb910549de3b72bd2bc78aa8b0b3b (diff)
downloadsamba-4738754e7d7216f6acf790827459bb5da6b0a110.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>
-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);