mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
smb2_sesssetup: only set NT_STATUS_MORE_PROCESSING_REQUIRED if a reauth can start
When the session is not valid on the current connection it should not be possible to start a reauth. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
d95e90fe46
commit
fd9191fb9c
@ -1,7 +1,4 @@
|
||||
^samba3.smb2.session.*.bind_negative_smb210
|
||||
^samba3.smb2.session.*.bind_negative_smb2to3
|
||||
^samba3.smb2.session.*.bind_negative_smb3to2
|
||||
^samba3.smb2.session.*.bind_negative_smb3to3
|
||||
^samba3.smb2.session.*.bind_negative_smb3encGtoC
|
||||
^samba3.smb2.session.*.bind_different_user.ad_dc
|
||||
^samba3.smb2.session.*.bind_invalid_auth.ad_member_idmap_rid
|
||||
|
@ -810,9 +810,6 @@ auth:
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
if (!(in_flags & SMB2_SESSION_FLAG_BINDING)) {
|
||||
state->session->status = NT_STATUS_MORE_PROCESSING_REQUIRED;
|
||||
}
|
||||
}
|
||||
|
||||
status = smbXsrv_session_find_channel(smb2req->session,
|
||||
@ -822,6 +819,10 @@ auth:
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
|
||||
if (!(in_flags & SMB2_SESSION_FLAG_BINDING)) {
|
||||
state->session->status = NT_STATUS_MORE_PROCESSING_REQUIRED;
|
||||
}
|
||||
|
||||
status = smbXsrv_session_find_auth(state->session, smb2req->xconn,
|
||||
now, &state->auth);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
Reference in New Issue
Block a user