smbd: Send SMB2 oplock breaks unencrypted
authorVolker Lendecke <vl@samba.org>
Tue, 6 Oct 2015 14:10:43 +0000 (16:10 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 24 Oct 2015 03:01:32 +0000 (05:01 +0200)
commit0a924d13cf4bb570cce3955cf0de9d8678b37dbe
tree0ebe7497c2bb858e489bbe252bc1412ecd737d3a
parent11620aefac77ebeb58cce784d20d4415d227f4ee
smbd: Send SMB2 oplock breaks unencrypted

This is not what Windows server does, but it seems that Windows
clients expect.  Windows->Windows never runs into this issue, because
an encryption-enabled SMB3 connection will always use leases, and lease
breaks *are* unencrypted...

You can reproduce the issue Windows->Windows by disabling leases on the
Windows server. Disable leases using the registry key:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\DisableLeasing

Dochelp confirmed that this is a valid workaround for Windows clients
dropping encrypted oplock breaks.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11570

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Oct 24 05:01:32 CEST 2015 on sn-devel-104
source3/smbd/smb2_server.c