summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2017-02-23 14:05:14 +0100
committerJeremy Allison <jra@samba.org>2017-02-25 02:38:28 +0100
commit73180972db086c853ca7b65e0925388a1ec4e0bc (patch)
treea681b44c4818f5505bc9b9baf03e4bd6f52e75ce
parent3d7fed0f2883d529bb635fc6df86f39d5a434d25 (diff)
downloadsamba-73180972db086c853ca7b65e0925388a1ec4e0bc.tar.gz
s3/smbd: allow GET_DFS_REFERRAL fsctl on any smb2 connexion
This FSCTL should work on any non-IPC share. According to [MS-SMB2] > 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: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Feb 25 02:38:28 CET 2017 on sn-devel-144
-rw-r--r--source3/smbd/smb2_ioctl_dfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/smbd/smb2_ioctl_dfs.c b/source3/smbd/smb2_ioctl_dfs.c
index 9c6647343cc..f4dd189f355 100644
--- a/source3/smbd/smb2_ioctl_dfs.c
+++ b/source3/smbd/smb2_ioctl_dfs.c
@@ -44,10 +44,6 @@ static NTSTATUS fsctl_dfs_get_refers(TALLOC_CTX *mem_ctx,
char *dfs_data = NULL;
DATA_BLOB output;
- if (!IS_IPC(conn)) {
- return NT_STATUS_INVALID_DEVICE_REQUEST;
- }
-
if (!lp_host_msdfs()) {
return NT_STATUS_FS_DRIVER_REQUIRED;
}