mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
s3:smb2_tcon: reject access to shares mark as "smb encrypt = required"
We do not support SMB2 transport encryption yet. metze
This commit is contained in:
parent
3fe601afcf
commit
88f326a2c0
@ -231,6 +231,14 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
|
||||
return NT_STATUS_BAD_NETWORK_NAME;
|
||||
}
|
||||
|
||||
if (lp_smb_encrypt(snum) == SMB_SIGNING_REQUIRED) {
|
||||
status = NT_STATUS_ACCESS_DENIED;
|
||||
DEBUG(3,("smbd_smb2_tree_connect: "
|
||||
"service %s needs encryption - %s\n",
|
||||
service, nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
/* create a new tcon as child of the session */
|
||||
status = smb2srv_tcon_create(req->session, now, &tcon);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user