Skip to content

Commit 306cb65

Browse files
bharathsm-mssmfrench
authored andcommitted
smb: fix secondary channel creation issue with kerberos by populating hostname when adding channels
When mounting a share with kerberos authentication with multichannel support, share mounts correctly, but fails to create secondary channels. This occurs because the hostname is not populated when adding the channels. The hostname is necessary for the userspace cifs.upcall program to retrieve the required credentials and pass it back to kernel, without hostname secondary channels fails establish. Cc: [email protected] Reviewed-by: Shyam Prasad N <[email protected]> Signed-off-by: Bharath SM <[email protected]> Reported-by: xfuren <[email protected]> Link: https://bugzilla.samba.org/show_bug.cgi?id=15824 Signed-off-by: Steve French <[email protected]>
1 parent e04c78d commit 306cb65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/smb/client/sess.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ cifs_ses_add_channel(struct cifs_ses *ses,
498498
ctx->domainauto = ses->domainAuto;
499499
ctx->domainname = ses->domainName;
500500

501-
/* no hostname for extra channels */
502-
ctx->server_hostname = "";
501+
ctx->server_hostname = ses->server->hostname;
503502

504503
ctx->username = ses->user_name;
505504
ctx->password = ses->password;

0 commit comments

Comments
 (0)