diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-27 23:51:03 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-27 23:51:03 -0800 |
commit | afce2b245a8ff137a4ecea547c3cfb65ab58dc15 (patch) | |
tree | 56c8f1258e0f042977b2f0defef53f96b9f6bfe8 /source3/smbd/service.c | |
parent | 33f01360e0a40f6d1fa03035979d816ff9198d85 (diff) | |
download | samba-afce2b245a8ff137a4ecea547c3cfb65ab58dc15.tar.gz samba-afce2b245a8ff137a4ecea547c3cfb65ab58dc15.tar.xz samba-afce2b245a8ff137a4ecea547c3cfb65ab58dc15.zip |
Add the capability to set "smb encrypt = required"
on a share (or global) and have the server reply with
ACCESS_DENIED for all non-encrypted traffic (except
that used to query encryption requirements and set
encryption state).
Jeremy.
(This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r-- | source3/smbd/service.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 8e69a3b3817..65fc8181446 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -795,6 +795,8 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, conn->case_preserve = lp_preservecase(snum); conn->short_case_preserve = lp_shortpreservecase(snum); + conn->encrypt_level = lp_smb_encrypt(snum); + conn->veto_list = NULL; conn->hide_list = NULL; conn->veto_oplock_list = NULL; |