diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-08-16 08:56:39 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-08-19 01:41:24 +0200 |
commit | 379e5c1c2fa75c30b08bea7079cf1e9c46db0b26 (patch) | |
tree | ba4e55c567e6db6e8b20208c46df3bba599afcee /source3/client | |
parent | 3111463e743dfda89002f1047d1030ab617e5277 (diff) | |
download | samba-379e5c1c2fa75c30b08bea7079cf1e9c46db0b26.tar.gz |
s3:smbclient: don't try any workgroup listing with "client min protocol = SMB2"
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12863
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 5897cecbdf3..5ef9ad52151 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5829,6 +5829,11 @@ static int do_host_query(const char *query_host) } } + if (lp_client_min_protocol() > PROTOCOL_NT1) { + d_printf("SMB1 disabled -- no workgroup available\n"); + goto out; + } + if (lp_disable_netbios()) { d_printf("NetBIOS over TCP disabled -- no workgroup available\n"); goto out; |