summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-05-27 17:48:23 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-03 10:51:25 +0200
commit8be8d911a8a055a9f56f9987a0782bd1df16b2e4 (patch)
tree134feadfb8764d26ce24dbbea415914f233f8913 /source3
parentedeccf0df0989df5a36f88642d0e373847955be2 (diff)
downloadsamba-8be8d911a8a055a9f56f9987a0782bd1df16b2e4.tar.gz
samba-8be8d911a8a055a9f56f9987a0782bd1df16b2e4.tar.bz2
samba-8be8d911a8a055a9f56f9987a0782bd1df16b2e4.zip
s3:smbd: allow SMB2 only if we don't use security = share
metze
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;
}