From: Stefan Metzmacher Date: Wed, 10 May 2017 05:37:37 +0000 (+0200) Subject: Revert "s3:smbd: unimplement FSCTL_VALIDATE_NEGOTIATE_INFO with "server max protocol... X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=42a70fb7d58a3accd05ccb8e682bb073ad403e7d Revert "s3:smbd: unimplement FSCTL_VALIDATE_NEGOTIATE_INFO with "server max protocol = SMB2_02"" This reverts commit efa5e47869ee88e5984e6763a40efa1eb2e64c9e. --- diff --git a/source3/smbd/smb2_ioctl_network_fs.c b/source3/smbd/smb2_ioctl_network_fs.c index c0d175609ec7..31b3c95c4b0d 100644 --- a/source3/smbd/smb2_ioctl_network_fs.c +++ b/source3/smbd/smb2_ioctl_network_fs.c @@ -420,23 +420,6 @@ static NTSTATUS fsctl_validate_neg_info(TALLOC_CTX *mem_ctx, NTSTATUS status; enum protocol_types protocol = PROTOCOL_NONE; - if (lp_server_max_protocol() <= PROTOCOL_SMB2_02) { - /* - * With SMB 2.02 we didn't get the - * capabitities, client guid, security mode - * and dialects the client would have offered. - * - * So we behave compatible with a true - * SMB 2.02 server and return NT_STATUS_FILE_CLOSED. - * - * As SMB >= 2.10 offers the two phase SMB2 Negotiate - * we keep supporting FSCTL_VALIDATE_NEGOTIATE_INFO - * starting with SMB 2.10, while Windows only supports - * it starting with SMB > 2.10. - */ - return NT_STATUS_FILE_CLOSED; - } - if (in_input->length < 0x18) { return NT_STATUS_INVALID_PARAMETER; }