s3:libsmb: Check disable_netbios in socket connect
authorJustin Stephenson <jstephen@redhat.com>
Thu, 3 Jan 2019 17:07:01 +0000 (12:07 -0500)
committerKarolin Seeger <kseeger@samba.org>
Fri, 1 Feb 2019 10:34:09 +0000 (11:34 +0100)
commitf13c5a9c1fdc1ae6bdbebd4a8c0dab0bcf394c3e
treef20bbc6d7fcd664cc461462acc35c45d0e84bc71
parent3145dae212c82b9e766e2ab406115b56cc3cd879
s3:libsmb: Check disable_netbios in socket connect

If the disable_netbios option is set then return NT_STATUS_NOT_SUPPORTED
for a port 139 connection in the low level socket connection code.

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

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Noel Power <nopower@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 78f51a1d3c53248159c1e7643364b62e52457bb9)
source3/libsmb/smbsock_connect.c