1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2017-03-02 17:19:21 +01:00
parent 632c6b514c
commit 00e45e92d7

View File

@ -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);