netplan NM plugin generates broken connection for WPA-Enterprise PEAP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Triaged
|
Medium
|
Unassigned |
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-
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[
: 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.
3. Start NM from the snap (sudo snap start network-
4. Create connection:
network-
**Note** - it looks like 802-1x.
5. Validate the incorrect netplan settings file in /etc/netplan, and broken keyfile in /run/NetworkMan
network-manager snap version: 1.36.6-8 r873 22/stable
Changed in netplan.io (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in netplan.io (Ubuntu Jammy): | |
importance: | Undecided → Medium |
tags: | added: sru-next |
description: | updated |
description: | updated |
This sounds like a duplicate of bug #2039825
Also see this PR for a more complete solution: https:/ /github. com/canonical/ netplan/ pull/416