mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3:smb2_negprot: announce support for SMB2.1 leases.
We only do this with "smb2 leases = yes" and the default values for "oplocks = yes" and "kernel oplocks = no". Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
44d2612822
commit
556bf2ee00
@ -230,6 +230,14 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
|
||||
capabilities |= SMB2_CAP_DFS;
|
||||
}
|
||||
|
||||
if (protocol >= PROTOCOL_SMB2_10 &&
|
||||
lp_smb2_leases() &&
|
||||
lp_oplocks(GLOBAL_SECTION_SNUM) &&
|
||||
!lp_kernel_oplocks(GLOBAL_SECTION_SNUM))
|
||||
{
|
||||
capabilities |= SMB2_CAP_LEASING;
|
||||
}
|
||||
|
||||
if ((protocol >= PROTOCOL_SMB2_24) &&
|
||||
(lp_smb_encrypt(-1) != SMB_SIGNING_OFF) &&
|
||||
(in_capabilities & SMB2_CAP_ENCRYPTION)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user