Commit e4058245 authored by Igor Mammedov's avatar Igor Mammedov Committed by Steve French
Browse files

Adds username in the upcall key for unattended mounts with keytab

Signed-off-by: default avatarIgor Mammedov <>
Signed-off-by: default avatarSteve French <>
parent 0d817bc0
......@@ -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, "");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment