libcli/smb: send SMB2_NETNAME_NEGOTIATE_CONTEXT_ID
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Jul 2019 12:38:26 +0000 (14:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 11 Sep 2019 13:27:24 +0000 (13:27 +0000)
commit36439305afc0b044d21ab00f946e0f4d86751206
treedec2bf121e66dc9a3299a58887d5856885e2752f
parent9b60134b8bba23786c5e5473a031bc90a4b3b4be
libcli/smb: send SMB2_NETNAME_NEGOTIATE_CONTEXT_ID

Note: Unlike the current documentation, the utf16 string
is not null-terminated, that matches Windows Server 1903
as a client.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14055
RN: Add the target server name of SMB 3.1.1 connections
as a hint to load balancers or servers with "multi-tenancy"
support.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
(similar to commit 21f6cece543dd791e0f4636458bfe9819823420c)

Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-9-test): Wed Sep 11 13:27:24 UTC 2019 on sn-devel-144
libcli/smb/smbXcli_base.c