summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index e014965147..f63e36a62b 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2017,7 +2017,8 @@ void smbd_process(void)
exit_server("failed to create smbd_server_connection");
}
- if (lp_maxprotocol() == PROTOCOL_SMB2) {
+ if (lp_maxprotocol() == PROTOCOL_SMB2 &&
+ lp_security() != SEC_SHARE) {
smbd_server_conn->allow_smb2 = true;
}