]> git.samba.org - mat/samba.git/commit
s3/smbd: ensure global "smb encrypt = off" is effective for share with "smb encrypt...
authorRalph Boehme <slow@samba.org>
Mon, 16 Jan 2017 11:56:10 +0000 (12:56 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 27 Jan 2017 21:00:17 +0000 (22:00 +0100)
commitb0b418c22558fa1df547df9bdac2642343ac39e1
tree1b8f4aa4f7eb665a5e40996a272842f5e1cc08ad
parent6ae63d42f5aacddf5b7b6dbdfbe620344989e4e5
s3/smbd: ensure global "smb encrypt = off" is effective for share with "smb encrypt = desired"

If encryption is disabled globally, per definition we shouldn't allow
enabling encryption on individual shares.

The behaviour of specifying

[Global]
  smb encrypt = off

[share]
  smb encrypt = desired

must be an unecrypted tree connect to the share "share".

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12520

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_tcon.c