s3:smbd: allow SMB2 only if we don't use security = share
authorStefan Metzmacher <metze@samba.org>
Wed, 27 May 2009 15:48:23 +0000 (17:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 3 Jun 2009 08:51:25 +0000 (10:51 +0200)
metze

source3/smbd/process.c

index e014965147a5d169e41ca9550b8bd4f7ef834f04..f63e36a62b16a1275ff3ef9254d38d4b15e4fa69 100644 (file)
@@ -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;
        }