diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-10-17 11:50:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:52 -0500 |
commit | d73bd8f01aefe97f007a59f49698a5c7c9e97c29 (patch) | |
tree | 7cd28f0b2fb342cbf80cbaa0fdc2e19fed1e76af /source4/libcli/ldap/ldap_bind.c | |
parent | bb3a915c9df2e7356f7ed171ac05c4ad08ec010a (diff) | |
download | samba-d73bd8f01aefe97f007a59f49698a5c7c9e97c29.tar.gz samba-d73bd8f01aefe97f007a59f49698a5c7c9e97c29.tar.xz samba-d73bd8f01aefe97f007a59f49698a5c7c9e97c29.zip |
r11114: - fixed error handling on bad bind in ildap client
- added nicer error display, giving a string version of the error code
(This used to be commit 5ec486bb81536b38a5f40cae7555cbcbbfa52263)
Diffstat (limited to 'source4/libcli/ldap/ldap_bind.c')
-rw-r--r-- | source4/libcli/ldap/ldap_bind.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_bind.c b/source4/libcli/ldap/ldap_bind.c index 738222da868..c08ffabc22c 100644 --- a/source4/libcli/ldap/ldap_bind.c +++ b/source4/libcli/ldap/ldap_bind.c @@ -240,7 +240,8 @@ NTSTATUS ldap_bind_sasl(struct ldap_connection *conn, struct cli_credentials *cr result = response->r.BindResponse.response.resultcode; if (result != LDAP_SUCCESS && result != LDAP_SASL_BIND_IN_PROGRESS) { - status = NT_STATUS_UNEXPECTED_NETWORK_ERROR; + status = ldap_check_response(conn, + &response->r.BindResponse.response); break; } |