libcli/smb: send SMB2_NETNAME_NEGOTIATE_CONTEXT_ID
commite3f51924971c9389659ec7b89c7a581e3315bda4
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Jul 2019 12:38:26 +0000 (25 14:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 11 Sep 2019 11:33:00 +0000 (11 11:33 +0000)
treeebf15c8bd0a0463e5b711fc80de217bbbd874fa6
parentb6a5018538903218c67742b5a732bf61bf447ab6
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-10-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-10-test): Wed Sep 11 11:33:00 UTC 2019 on sn-devel-144
libcli/smb/smbXcli_base.c