Revert "s3:smbd: unimplement FSCTL_VALIDATE_NEGOTIATE_INFO with "server max protocol...
authorStefan Metzmacher <metze@samba.org>
Wed, 10 May 2017 06:40:03 +0000 (08:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2019 11:58:53 +0000 (12:58 +0100)
This reverts commit def878b3aa74c81303fe4ba3fe69e20ee579dd55.

source3/smbd/smb2_ioctl_network_fs.c

index c0d175609ec7e9359208ab19cfa917f2546a0857..31b3c95c4b0de3f6ffe1275300adb481bfd706f0 100644 (file)
@@ -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;
        }