GET_DFS_REFERRALS and IPC$
Jeremy Allison
jra at samba.org
Wed Dec 2 00:15:14 UTC 2015
On Tue, Dec 01, 2015 at 01:18:36PM -0800, Richard Sharpe wrote:
>
> Attached is the capture.
>
> It is pretty clear that the server is Windows Server 2012 or Windows 8
> since it supports NEGOEX.
>
> It seems happy to accept GET_DFS_REFERRALS on any share.
Here is an untested horrible hack :-). Please test :-).
-------------- next part --------------
diff --git a/source3/smbd/smb2_ioctl_dfs.c b/source3/smbd/smb2_ioctl_dfs.c
index 9c66473..0857a2d 100644
--- a/source3/smbd/smb2_ioctl_dfs.c
+++ b/source3/smbd/smb2_ioctl_dfs.c
@@ -44,9 +44,12 @@ static NTSTATUS fsctl_dfs_get_refers(TALLOC_CTX *mem_ctx,
char *dfs_data = NULL;
DATA_BLOB output;
+#if 0
+ /* JRATEST */
if (!IS_IPC(conn)) {
return NT_STATUS_INVALID_DEVICE_REQUEST;
}
+#endif
if (!lp_host_msdfs()) {
return NT_STATUS_FS_DRIVER_REQUIRED;
More information about the samba-technical
mailing list