Can't Connect to Open Network

Bug #1752247 reported by Craige McWhirter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Fix Released
High
Unassigned
netplan.io (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The man page states:

access-points (mapping)

...

    password (scalar)
        Enable WPA2 authentication and set the passphrase for it. If not given, the network is assumed to be open. Other authentication modes are not currently supported.

If I configure Netplan this way:

  wifis:
    wlp1s0:
      dhcp4: yes
      access-points:
        "My Open Network":

Upon "sudo netplan apply":

Error in network definition //etc/netplan/01-netcfg.yaml line 16 column 28: expected mapping

If I configure Netplan this way:

  wifis:
    wlp1s0:
      dhcp4: yes
      access-points:
        "My Open Network":
          password:

Syslog shows:

Feb 28 16:10:08 dionach systemd[1]: Starting resolvconf-pull-resolved.service...
Feb 28 16:10:08 dionach systemd[1]: Started resolvconf-pull-resolved.service.
Feb 28 16:10:08 dionach kernel: [71993.278797] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
Feb 28 16:10:08 dionach systemd[1]: Starting resolvconf-pull-resolved.service...
Feb 28 16:10:08 dionach systemd[1]: Started WPA supplicant for netplan wlp1s0.
Feb 28 16:10:08 dionach wpa_supplicant[27188]: Successfully initialized wpa_supplicant
Feb 28 16:10:08 dionach systemd[1]: Started resolvconf-pull-resolved.service.
Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 13: Invalid passphrase length 0 (expected: 8..63) '"'.
Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 13: failed to parse psk '""'.
Feb 28 16:10:08 dionach wpa_supplicant[27188]: Line 14: failed to parse network block.
Feb 28 16:10:08 dionach wpa_supplicant[27188]: Failed to read or parse configuration '/run/netplan/wpa-wlp1s0.conf'.
Feb 28 16:10:08 dionach systemd[1]: <email address hidden>: Main process exited, code=exited, status=255/n/a
Feb 28 16:10:08 dionach systemd[1]: <email address hidden>: Failed with result 'exit-code'.

Netplan will happily connect to any access-point that has a password.

tags: added: rls-bb-incoming
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

What about if you pass:

wifis:
    wlp1s0:
      dhcp4: yes
      access-points:
        "My Open Network": {}

This is non-obvious though, we should fix the doc to clarify.

affects: nplan (Ubuntu) → netplan.io (Ubuntu)
Changed in netplan.io (Ubuntu):
status: New → Triaged
Changed in netplan:
status: New → Triaged
importance: Undecided → High
Changed in netplan.io (Ubuntu):
importance: Undecided → High
tags: removed: rls-bb-incoming
Revision history for this message
Lukas Märdian (slyon) wrote :
Changed in netplan.io (Ubuntu):
status: Triaged → Fix Released
Changed in netplan:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.