Adds username in the upcall key for unattended mounts with keytab
authorIgor Mammedov <niallain@gmail.com>
Wed, 2 Apr 2008 13:33:47 +0000 (17:33 +0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 22 May 2008 14:09:37 +0000 (14:09 +0000)
Signed-off-by: Igor Mammedov <niallain@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_spnego.c

index 6653e29637a7ec534c83d53c8a21ddda24130367..7013aaff6aedb9e868bac89f3cf2de9f98c3f358 100644 (file)
@@ -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, "");