[Bug 2044010] Re: netplan NM plugin generates broken connection for WPA-Enterprise PEAP
Danilo Egea Gondolfo
2044010 at bugs.launchpad.net
Fri Nov 24 13:51:08 UTC 2023
It seems to actually be a duplicate of this bug #2016625
It was fixed in this PR https://github.com/canonical/netplan/pull/358
But apparently it didn't make it to Jammy.
** Also affects: netplan.io (Ubuntu Jammy)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu)
Status: New => Triaged
** Changed in: netplan.io (Ubuntu Jammy)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2044010
Title:
netplan NM plugin generates broken connection for WPA-Enterprise PEAP
Status in netplan.io package in Ubuntu:
Triaged
Status in netplan.io source package in Jammy:
Triaged
Bug description:
When a WPA Enterprise PEAP connection is configured with the network-
manager snap, the resulting netplan connection file generated doesn't
include "auth.method", instead '802-1x.eap: "peap"' is included in
"passthrough" stanza.
"mywifi":
auth:
key-management: "eap"
identity: "myid"
phase2-auth: "mschapv2"
password: "mypassword"
networkmanager:
name: "mywifi"
passthrough:
wifi-security.auth-alg: "open"
802-1x.eap: "peap;"
This results in a NM keyfile being generated with an incomplete
[802-1x] stanza:
[wifi-security]
auth-alg=open
key-mgmt=wpa-eap
[802-1x]
eap=peap
This is logged by the NM settings plugin:
Nov 20 10:57:05 brain NetworkManager[6358]: <error> [1700495825.5266] BUG: the profile cannot be stored in keyfile format without becoming unusable: invalid connection: 802-1x.identity
: property is missing
Steps to reproduce:
1. Install network-manager snap (I used 22/stable) on a Desktop system (for consistency I used 22.04 LTS)
2. Stop NetworkManager service (sudo systemctl stop NetworkManager.service)
3. Start NM from the snap (sudo snap start network-manager.networkmanager)
4. Create connection:
network-manager.nmcli con add type wifi con-name "mywifi" ifname
"wlp4s0" ssid "mywifi" wifi-sec.auth wifi-sec.auth-alg open wifi-
sec.key-mgmt wpa-eap 802-1x.eap peap 802-1x.identity "myid"
802-1x.password "mypassword" 802-1x.phase2-auth mschapv2
802-1x.system-certs no
**Note** - it looks like 802-1x.system-certs gets completely dropped
too.
5. Validate the incorrect netplan settings file in /etc/netplan, and
broken keyfile in /run/NetworkManager/system-connections.
network-manager snap version: 1.36.6-8 r873 22/stable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2044010/+subscriptions
More information about the foundations-bugs
mailing list