summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_tcon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index 4549d3aa84..96a5c12b2a 100644
--- a/source3/smbd/smb2_tcon.c
+++ b/source3/smbd/smb2_tcon.c
@@ -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)) {