Bug 411512 - VPN passwords are not persisted to kwallet
Summary: VPN passwords are not persisted to kwallet
Status: RESOLVED DUPLICATE of bug 413583
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_networkmanagement (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-02 06:22 UTC by pdf
Modified: 2024-12-23 18:27 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pdf 2019-09-02 06:22:02 UTC
SUMMARY
VPN passwords are not saved (when enabling "Store password for this user only (encypted)"), however WIFI passwords are. Not sure when this stopped working, but earlier versions did function correctly, so I suspect a regression.

STEPS TO REPRODUCE
1. Create VPN connection
2. Set password and enable "Store password for this user only (encrypted)"
3. Apply changes

OBSERVED RESULT
Upon navigating away from VPN connection dialog and navigating back, password is empty. Attempting to connect to VPN prompts for password every time.

No map entry is created in kdewallet for the VPN, however WIFI passwords stored via the same method are successfully created in kdewallet.

Storing unencrypted works as expected, but is clearly not preferred.

EXPECTED RESULT
Password is saved and retrieved from kdewallet successfully.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Saving the VPN produces the following logs, that seem to indicate the correct calls are being made, however no entry appears in kdewallet:

audit[609]: USYS_CONFIG pid=609 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-update uuid=f8f805f3-5bb3-4fdd-9d66-f4890ec081f4 name="vpn_connection" args=vpn.secrets pid=17990 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
NetworkManager[609]: <info>  [1567404184.1217] audit: op="connection-update" uuid="f8f805f3-5bb3-4fdd-9d66-f4890ec081f4" name="vpn_connection" args="vpn.secrets" pid=17990 uid=1000 result="success"
kdeinit5[12397]: plasma-nm: virtual void SecretAgent::SaveSecrets(const NMVariantMapMap&, const QDBusObjectPath&)
kdeinit5[12397]: plasma-nm: Path: "/org/freedesktop/NetworkManager/Settings/10"
kernel: audit: type=1111 audit(1567404184.118:253): pid=609 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-update uuid=f8f805f3-5bb3-4fdd-9d66-f4890ec081f4 name="vpn_connection" args=vpn.secrets pid=17990 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'

Opening the connection edit dialog produces the following logs, however there's nothing in kdewallet, so passwords are predictably empty:

kdeinit5[12397]: plasma-nm: virtual NMVariantMapMap SecretAgent::GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint)
kdeinit5[12397]: plasma-nm: Path: "/org/freedesktop/NetworkManager/Settings/10"
kdeinit5[12397]: plasma-nm: Setting name: "vpn"
kdeinit5[12397]: plasma-nm: Hints: ()
kdeinit5[12397]: plasma-nm: Flags: 4

Tested using both OpenVPN and L2TP VPN connections, both produce the same result. There are other bugs filed against specific VPNs, however this appears to be a general problem, rather than specific to a certain VPN backend.
Comment 1 pdf 2019-09-02 06:23:38 UTC
In case it's important:

NetworkManager Version: 1.20.0
Comment 2 cybea 2019-09-03 15:28:30 UTC
I have a very similar problem and think it is the same bug - so I want to confirm and comment here:

SUMMARY
unable to change vpn user passwords from "Connections - System Settings Module"

STEPS TO REPRODUCE
1. Create openVPN with "Connection Type" "Password" and save all credentials with "Store password for this user only (encrypted)"
2. Change Password
3. Apply changes

OBSERVED RESULT
Password in kwallet is not changed

EXPECTED RESULT
Password in kwallet is changed accordingly

SOFTWARE/OS VERSIONS
KDE neon 5.16 user edition
KDE Frameworks 5.61.0
Qt 5.12.3 (built against 5.12.3)

plasma: 5.16.4
kwalletmanager: 19.08.0
Comment 3 Piotr Budny 2019-10-22 20:15:38 UTC
KDE Plasma also 5.17.0 affected.
Comment 4 Jan Grulich 2019-12-05 10:58:25 UTC
*** This bug has been marked as a duplicate of bug 413583 ***