https://bugs.kde.org/show_bug.cgi?id=520449
Bug ID: 520449
Summary: Network Profile Editing overwrites
802.1x.private-key-password-flags with default value
Classification: Applications
Product: systemsettings
Version First 6.6.5
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: kcm_networkmanagement
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Network Manager knows four values for the 802.1x.private-key-password-flags
setting: 0 (= None, ask always), 1 (= Agent Owned), 2 (= Not Saved) or 4 (= Not
Required).
If a Profile exists that has its 802.1x.private-key-password-flags set to 4
(e.g. because the underlying key is saved in a hardware token without PIN),
kcm_networkmanagement resets this on any edit of the connection profile to 0.
## Root Cause:
https://invent.kde.org/plasma/plasma-nm/-/blob/master/libs/editor/settings/security802-1x.cpp?ref_type=heads#L148
ff parses the enum to entries in the Dropdown for editing. It does not handle
the case "not required", thus defaulting to 0 (= ask always).
Consequently, during saving the value 4 for not required also cannot be
serialized
(https://invent.kde.org/plasma/plasma-nm/-/blob/master/libs/editor/settings/security802-1x.cpp?ref_type=heads#L351
ff).
Note that fixing this likely requires modification of the PasswordField widget
for which I could not find the source code easily as I am not deeply familiar
with the codebase.
--
You are receiving this mail because:
You are watching all bug changes.