Skip to content

Commit e405824

Browse files
imammedoSteve French
authored andcommitted
Adds username in the upcall key for unattended mounts with keytab
Signed-off-by: Igor Mammedov <niallain@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
1 parent 0d817bc commit e405824

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎fs/cifs/cifs_spnego.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
119119
dp = description + strlen(description);
120120
sprintf(dp, ";uid=0x%x", sesInfo->linux_uid);
121121

122+
dp = description + strlen(description);
123+
sprintf(dp, ";user=%s", sesInfo->userName);
124+
122125
cFYI(1, ("key description = %s", description));
123126
spnego_key = request_key(&cifs_spnego_key_type, description, "");
124127

0 commit comments

Comments
 (0)