git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57e5bab
)
ldb-samba: remember the error string of a failing bind in ildb_connect()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 2 Mar 2017 16:19:21 +0000
(17:19 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 3 Mar 2017 07:59:16 +0000
(08:59 +0100)
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>
lib/ldb-samba/ldb_ildap.c
patch
|
blob
|
history
diff --git
a/lib/ldb-samba/ldb_ildap.c
b/lib/ldb-samba/ldb_ildap.c
index 65f11dba0182e8f6cfe873fbfbaf462e7bf9c1f7..541971f63def5b1537f0635e82240e7890d10e40 100644
(file)
--- 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);