Skip to content

Commit

Permalink
Adds username in the upcall key for unattended mounts with keytab
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Mammedov <niallain@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Igor Mammedov authored and Steve French committed May 22, 2008
1 parent 0d817bc commit e405824
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/cifs/cifs_spnego.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
dp = description + strlen(description);
sprintf(dp, ";uid=0x%x", sesInfo->linux_uid);

dp = description + strlen(description);
sprintf(dp, ";user=%s", sesInfo->userName);

cFYI(1, ("key description = %s", description));
spnego_key = request_key(&cifs_spnego_key_type, description, "");

Expand Down

0 comments on commit e405824

Please sign in to comment.