mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
If encryption is disabled globally, per definition we shouldn't allow enabling encryption on individual shares. The behaviour of setting [Global] smb encrypt = off [share] smb encrypt = required must be to completely deny access to the share "share". This was working correctly for clients when using SMB 3 dialects < 3.1.1, but not for 3.1.1 with a negprot encryption context. 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>