From: Stefan Metzmacher Date: Thu, 2 Mar 2017 16:19:21 +0000 (+0100) Subject: ldb-samba: remember the error string of a failing bind in ildb_connect() X-Git-Tag: tdb-1.3.13~666 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4738754e7d7216f6acf790827459bb5da6b0a110;p=thirdparty%2Fsamba.git 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 --- 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);