From 4738754e7d7216f6acf790827459bb5da6b0a110 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 2 Mar 2017 17:19:21 +0100 Subject: [PATCH] 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 Reviewed-by: Andrew Bartlett --- lib/ldb-samba/ldb_ildap.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.3