The branch, master has been updated
       via  7318097 s3/smbd: allow GET_DFS_REFERRAL fsctl on any smb2 connexion
      from  3d7fed0 s3:idmap_ad: make use of pdb_get_trust_credentials() to get 
the machine account creds

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 73180972db086c853ca7b65e0925388a1ec4e0bc
Author: Aurelien Aptel <aap...@suse.com>
Date:   Thu Feb 23 14:05:14 2017 +0100

    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 <aap...@suse.com>
    Reviewed-by: David Disseldorp <dd...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    
    Autobuild-User(master): Jeremy Allison <j...@samba.org>
    Autobuild-Date(master): Sat Feb 25 02:38:28 CET 2017 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_ioctl_dfs.c | 4 ----
 1 file changed, 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_ioctl_dfs.c b/source3/smbd/smb2_ioctl_dfs.c
index 9c66473..f4dd189 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;
        }


-- 
Samba Shared Repository

Reply via email to