mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:ldap_server: avoid pointless check arround LDAP_INVALID_CREDENTIALS
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
b271794ca8
commit
e8d431250e
@ -428,11 +428,9 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
status = nt_status_squash(status);
|
||||
if (result == 0) {
|
||||
result = LDAP_INVALID_CREDENTIALS;
|
||||
errstr = ldapsrv_bind_error_msg(reply, HRES_SEC_E_LOGON_DENIED,
|
||||
0x0C0904DC, status);
|
||||
}
|
||||
result = LDAP_INVALID_CREDENTIALS;
|
||||
errstr = ldapsrv_bind_error_msg(reply, HRES_SEC_E_LOGON_DENIED,
|
||||
0x0C0904DC, status);
|
||||
talloc_unlink(conn, conn->gensec);
|
||||
conn->gensec = NULL;
|
||||
goto do_reply;
|
||||
|
Loading…
Reference in New Issue
Block a user