network-cc-panel silently fails when setting 802.1X password
When setting a new password for a cabled and secured network (I'm in a Windows domain, PEAP), gnome-control-center silently fails (the new password is not set).
I can change other parameters in the security tab (I tested editing Authentication, PEAP version, Inner authentication, Username) and they get correctly saved.
Unlike issue #142 there's no change when selecting/deselecting "Make available to other users".
I'm logging in with fprintd but unlocking the gnome-keyring before trying to edit the connection password.
I'm on an updated Arch Linux with the following packages versions:
- gnome-control-center 3.30.2-1
- accountsservice 0.6.54+2+g204a4ab-1
- gnome-desktop 1:3.30.2-1
- gnome-online-accounts 3.30.0-1
- gnome-settings-daemon 3.30.1.2-1
- gsettings-desktop-schemas 3.28.1-1
- gtk3 3.24.2+7+g43aeb52b73-1
- libgtop 2.38.0+13+gcab8791f-1
- nm-connection-editor 1.8.19dev+21+geebf7f95-1
- network-manager-applet 1.8.19dev+21+geebf7f95-1
- networkmanager 1.14.5dev+17+gba83251bb-1
- gnome-keyring 1:3.28.2-1
- fprintd 0.8.1-2
I tried editing the password using nm-connection-editor GUI and it works, I tried editing the same with nmcli (nmcli con modify "eth dhcp 8021x" 802-1x.password "myverysecretpassword") and it works.
My connection file looks like this:
# ls -l /etc/NetworkManager/system-connections/eth\ dhcp\ 8021x
-rw------- 1 root root 393 Jan 8 10:59 '/etc/NetworkManager/system-connections/eth dhcp 8021x'
# cat /etc/NetworkManager/system-connections/eth\ dhcp\ 8021x
[connection]
id=eth dhcp 8021x
uuid=ac998d10-4281-4ba6-ae58-b7229246db0a
type=ethernet
autoconnect=false
permissions=user:ilario:;
timestamp=1546940157
[ethernet]
mac-address-blacklist=
[802-1x]
eap=peap;
identity=ICIQ.ES\\igelmetti
password=myverysecretpassword
phase2-auth=mschapv2
[ipv4]
dns-search=
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto
Running with verbose option I get the following output:
(gnome-control-center:9371): dconf-DEBUG: 11:02:32.311: watch_fast: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (establishing: 0, active: 0)
(gnome-control-center:9371): dconf-DEBUG: 11:02:32.311: unwatch_fast: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (active: 0, establishing: 1)
(gnome-control-center:9371): dconf-DEBUG: 11:02:32.311: watch_established: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (establishing: 0)
11:02:36.0946 network-cc-panel: DEBUG: Invalid setting Security: missing EAP password
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.164: watch_fast: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (establishing: 0, active: 0)
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: change_fast
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: change_notify: /org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/ignore-ca-cert
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: change_fast
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: change_notify: /org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/ignore-phase2-ca-cert
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: unwatch_fast: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (active: 0, establishing: 1)
(gnome-control-center:9371): dconf-DEBUG: 11:02:39.165: watch_established: "/org/gnome/nm-applet/eap/ac998d10-4281-4ba6-ae58-b7229246db0a/" (establishing: 0)
The "Invalid setting Security: missing EAP password" appears while I'm writing the new password, and appears also when editing with nm-connection-editor (see below) which indeed succeeds.
In NetworkManager log (journalctl -u NetworkManager) I can see:
Jan 08 11:02:39 iglaptop NetworkManager[608]: <info> [1546941759.4136] settings-connection[0x556a2cd6daa0,ac998d10-4281-4ba6-ae58-b7229246db0a]: write: successfully updated (>
Jan 08 11:02:39 iglaptop NetworkManager[608]: <info> [1546941759.4151] audit: op="connection-update" uuid="ac998d10-4281-4ba6-ae58-b7229246db0a" name="eth dhcp 8021x" pid=937>
When editing the same with nm-connection-editor, I have:
** Message: 11:06:38.978: Cannot save connection due to error: Invalid setting 802.1X Security: missing EAP password
** Message: 11:06:38.979: Connection validates and can be saved
but indeed the connection is saved correctly.
For the same edit, the NetworkManager log reports:
Jan 08 11:06:40 iglaptop NetworkManager[608]: <info> [1546942000.9659] settings-connection[0x556a2cd6daa0,ac998d10-4281-4ba6-ae58-b7229246db0a]: write: successfully updated (>
Jan 08 11:06:40 iglaptop NetworkManager[608]: <info> [1546942000.9669] audit: op="connection-update" uuid="ac998d10-4281-4ba6-ae58-b7229246db0a" name="eth dhcp 8021x" args="c>
Thanks,
Ilario