s4:librpc: autonegotiate SMB1/2/3
commitecf9e20e8bf94cf476aeba425b3a554b15d0eee4
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Jul 2018 14:55:33 +0000 (18 16:55 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:34 +0000 (13 12:56 +0200)
tree69a6439535e27ccaa0e00ce2887f056a2ba7be00
parente9494f9b096f6469a3ce0c5c628577ae7e011b96
s4:librpc: autonegotiate SMB1/2/3

Windows Server 1709 defaults to SMB2 and does not have SMB1 enabled.
When establishing trust, samba-tool does not specify SMB protocol
version and fail by default.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13308

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 4422f7382aad3090cb959ade030a02bf4fef81ac)
source4/librpc/rpc/dcerpc_connect.c