1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r11114: - fixed error handling on bad bind in ildap client

- added nicer error display, giving a string version of the error code
This commit is contained in:
Andrew Tridgell
2005-10-17 11:50:34 +00:00
committed by Gerald (Jerry) Carter
parent 7e338c23f5
commit 5ec486bb81
2 changed files with 64 additions and 2 deletions

View File

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