Bug 361373 - KWallet fails to unlock after logout/login cycle
Summary: KWallet fails to unlock after logout/login cycle
Status: REPORTED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-04 12:21 UTC by madcatx
Modified: 2020-08-10 09:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description madcatx 2016-04-04 12:21:56 UTC
I use kwallet-pam to unlock my wallet automatically after I login. This works fine only the first time I log in. If I have to log out of my session and log back in, KWallet asks me to enter a password. Even when I provide the correct password to the GUI prompts, the wallet fails to unlock with "error -9". The only way to get into the wallet again is to reboot the system.

I've done a bit of investigation on my own hoping that it'd be something simple. As far as I can tell the password hash used to decrypt the storage is correct first time after the reboot. Any subsequent unlocks will use a different hash that fails to decrypt the storage. The wrong hash stays the same each time I try the logout/login cycle. I also noticed that the wrong hash seems to be change after a reboot.

Reproducible: Always

Steps to Reproduce:
1. Log into Plasma after boot and have kwallet-pam enabled
2. Log out and back in
3. Done. KWallet cannot be opened until next reboot

Actual Results:  
KWallet is not opened and cannot be opened until the system is rebooted.

Expected Results:  
KWallet should be opened by pam automatically or at least be openalbe after the correct password is provided to the GUI prompt.

I'm currently using KWallet 5.20 and kwallet-pam 5.6.1 as packaged by Arch Linux.