https://bugs.kde.org/show_bug.cgi?id=361860

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from [email protected] ---
I'm experiencing this behaviour with current KDE 6 packages on Kubuntu 26.04.1
LTS.

- Plasma: 6.6.7
- KWallet: 6.24.0
- KWallet PAM: 6.6.4
- Session: Wayland

My only wallet is named MyKDEWallet, and both Default Wallet and Local Wallet
in kwalletrc point to it.

I confirmed that the installed PAM module contains the hardcoded path:

    $ strings /usr/lib/x86_64-linux-gnu/security/pam_kwallet5.so | grep
kdewallet.salt
    kwalletd/kdewallet.salt

Both MyKDEWallet.salt and kdewallet.salt exist, and cmp confirms their contents
differ.

Meanwhile, src/runtime/ksecretd/main.cpp in KWallet 6.24.0 calls:

    secretd.pamOpen(KWallet::Wallet::LocalWallet(), passHash, 0);

It appears PAM derives the key using the salt for kdewallet, while ksecretd
attempts to unlock the configured local wallet using that key.

The PAM module runs during login, but the wallet remains locked until I
manually enter its password.

Could PAM be updated to use the salt belonging to the configured local wallet
rather than a hardcoded wallet name?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to