1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r1365: in SPNEGO_SERVER_TARG we should not check the spnego_negResult

because the client don't send this

metze
This commit is contained in:
Stefan Metzmacher 2004-07-06 17:58:56 +00:00 committed by Gerald (Jerry) Carter
parent 49e4d375e9
commit b1217a4ef6

View File

@ -340,10 +340,6 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
spnego_state->expected_packet));
return NT_STATUS_INVALID_PARAMETER;
}
if (spnego.negTokenTarg.negResult == SPNEGO_REJECT) {
return NT_STATUS_ACCESS_DENIED;
}
if (spnego.negTokenTarg.responseToken.length) {
nt_status = gensec_update(spnego_state->sub_sec_security,
@ -355,11 +351,6 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
nt_status = NT_STATUS_OK;
}
if (NT_STATUS_IS_OK(nt_status)
&& (spnego.negTokenTarg.negResult != SPNEGO_ACCEPT_COMPLETED)) {
nt_status = NT_STATUS_INVALID_PARAMETER;
}
spnego_state->result = spnego.negTokenTarg.negResult;
spnego_free_data(&spnego);