[Bug 2044010] Re: netplan NM plugin generates broken connection for WPA-Enterprise PEAP

Lukas Märdian 2044010 at bugs.launchpad.net
Wed Nov 29 14:52:17 UTC 2023


*** This bug is a duplicate of bug 2016625 ***
    https://bugs.launchpad.net/bugs/2016625

** This bug has been marked a duplicate of bug 2016625
   Failed to add connection via nmcli

-- 
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:
  Fix Released
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-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-ca-certs no

  **Note** - it looks like 802-1x.system-ca-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