From: Stefan Metzmacher <metze@samba.org>
To: Steve French <stfrench@microsoft.com>
Cc: "linux-cifs@vger.kernel.org" <linux-cifs@vger.kernel.org>,
Samba Technical <samba-technical@lists.samba.org>
Subject: Re: [MS-SMB2] 2.2.3.1.4 SMB2_NETNAME_NEGOTIATE_CONTEXT_ID
Date: Fri, 26 Jul 2019 10:27:52 +0200 [thread overview]
Message-ID: <a8102b82-046b-c62a-29c9-a61ae563bf34@samba.org> (raw)
In-Reply-To: <e51f32ff-ce54-d015-4ba0-572ec35f3e45@samba.org>
[-- Attachment #1.1: Type: text/plain, Size: 846 bytes --]
Hi Steve,
I just contacted dochelp for this and noticed (from reading the code)
that the kernel sends null-termination for the
SMB2_NETNAME_NEGOTIATE_CONTEXT_ID value.
I think you should fix that and backport it to stable releases,
it would be good if all clients would implement it like windows.
I implemented it for Samba here:
https://gitlab.com/samba-team/samba/merge_requests/666
metze
Am 26.07.19 um 10:22 schrieb Stefan Metzmacher via cifs-protocol:
> Hi DocHelp,
>
> I just noticed a documentation bug in
> [MS-SMB2] 2.2.3.1.4 SMB2_NETNAME_NEGOTIATE_CONTEXT_ID:
>
> NetName (variable): A null-terminated Unicode string containing the
> server name and specified by the client application.
>
> Windows Server 1903 sends the name without null-termination, see the
> attached capture.
>
> metze
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next parent reply other threads:[~2019-07-26 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e51f32ff-ce54-d015-4ba0-572ec35f3e45@samba.org>
2019-07-26 8:27 ` Stefan Metzmacher [this message]
2019-08-05 22:11 ` [MS-SMB2] 2.2.3.1.4 SMB2_NETNAME_NEGOTIATE_CONTEXT_ID Steve French
2019-08-06 5:17 ` Stefan Metzmacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a8102b82-046b-c62a-29c9-a61ae563bf34@samba.org \
--to=metze@samba.org \
--cc=linux-cifs@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=stfrench@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).