1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

s3:smb2_server: use the global signing key to check if signing is required

If we have a channel session key, we also always have a global session key.

For multi-channel it's possible that the channel session key is not in place
yet, in that case the global session key needs to be used.

In both cases (reauth or session bind) we session setup requests need to be
signed.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Stefan Metzmacher 2014-06-12 15:10:11 +02:00 committed by Michael Adam
parent 17f87297cd
commit 7e006d1113

View File

@ -1970,7 +1970,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
encryption_required = x->global->encryption_required; encryption_required = x->global->encryption_required;
if (opcode == SMB2_OP_SESSSETUP && if (opcode == SMB2_OP_SESSSETUP &&
x->global->channels[0].signing_key.length) { x->global->signing_key.length > 0) {
signing_required = true; signing_required = true;
} }
} }