git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3111463
)
s3:smbclient: don't try any workgroup listing with "client min protocol = SMB2"
author
Stefan Metzmacher
<metze@samba.org>
Wed, 16 Aug 2017 06:56:39 +0000
(08:56 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 18 Aug 2017 23:41:24 +0000
(
01:41
+0200)
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>
source3/client/client.c
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index 5897cecbdf3143a3fbf1595d3d23ebe99d3a3b71..5ef9ad52151427c16f755314d09b993fb014d169 100644
(file)
--- 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;