]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: implement get_dfs_refer for SMB2+
authorAurelien Aptel <aaptel@suse.com>
Mon, 13 Feb 2017 15:16:49 +0000 (16:16 +0100)
committerSteve French <smfrench@gmail.com>
Thu, 2 Mar 2017 23:05:31 +0000 (17:05 -0600)
commitdc130ceb7e1be7c872288d67b386c130f67bbe4f
treeb51c69ef2ec32de0b10a53da889bdbb7f9adda9e
parentce9e42e0e9e19cc2a8422024a0b0e713cfcbfc2b
CIFS: implement get_dfs_refer for SMB2+

in SMB2+ the get_dfs_refer operation uses a FSCTL. The request can be
made on any Tree Connection according to the specs. Since Samba only
accepted it on an IPC connection until recently, try that first.

https://lists.samba.org/archive/samba-technical/2017-February/118859.html

3.2.4.20.3 Application Requests DFS Referral Information:
> The client MUST search for an existing Session and TreeConnect to any
> share on the server identified by ServerName for the user identified by
> UserCredentials. If no Session and TreeConnect are found, the client
> MUST establish a new Session and TreeConnect to IPC$ on the target
> server as described in section 3.2.4.2 using the supplied ServerName and
> UserCredentials.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.h