]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add call to conn_setup_case_options() to create_conn_struct_as_root().
authorJeremy Allison <jra@samba.org>
Tue, 12 Jan 2021 19:44:44 +0000 (11:44 -0800)
committerAnoop C S <anoopcs@samba.org>
Wed, 13 Jan 2021 18:14:31 +0000 (18:14 +0000)
Ensures temporary DFS share doesn't leave the case parameters set
as zero (i.e.:

conn->case sensitive = 0
conn->share_case_preserve = 0
and default case is lower

which can cause problems doing a DFS_GET_REFERRALS request).

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Wed Jan 13 18:14:31 UTC 2021 on sn-devel-184

source3/smbd/msdfs.c

index 7b5ea2515019f81bae865c0d3102bcf75be7e7df..dc07727f007b52fe415f5916fd4e51d083fa055e 100644 (file)
@@ -317,6 +317,8 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
                vfs_user = get_current_username();
        }
 
+       conn_setup_case_options(conn);
+
        set_conn_connectpath(conn, connpath);
 
        /*