Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent 0d817bc0
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -119,6 +119,9 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
	dp = description + strlen(description);
	dp = description + strlen(description);
	sprintf(dp, ";uid=0x%x", sesInfo->linux_uid);
	sprintf(dp, ";uid=0x%x", sesInfo->linux_uid);


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

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