Network Manager can't connect to hidden wireless networks

Bug #431265 reported by fumozzo
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
network-manager-applet (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

After the 13th of September updates I can't connect anymore to my university wireless network using network manager. I can connect without any problem ti unprotected or WEP protected networks.
The university network is WPA2 EAP-TLS protected. I can however connect manually using wpa_supplicant with the following wpa_supplicant.conf file:

network={
      ssid="unimib"
      scan_ssid=1
      key_mgmt=WPA-EAP
      pairwise=CCMP TKIP
      group=CCMP TKIP
      eap=TLS
      <email address hidden>"
      ca_cert="ca.pem"
      client_cert="xxxxxxxxxxxx.pem"
      private_key="xxxxxxxxxxxxxxxxxxx.key"
      private_key_passwd="xxxxxxxxxxxxxxxxxxxxxxx"
}

I can also connect using wicd.

This is the result of running NetworkManager --no-daemon:

NetworkManager: <info> starting...
NetworkManager: <info> modem-manager is now available
NetworkManager: SCPlugin-Ifupdown: init!
NetworkManager: SCPlugin-Ifupdown: update_system_hostname
NetworkManager: SCPluginIfupdown: management mode: unmanaged
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.0/0000:09:00.0/net/eth0, iface: eth0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.0/0000:09:00.0/net/eth0, iface: eth0): no exported connection
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:0b:00.0/net/wlan0, iface: wlan0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:0b:00.0/net/wlan0, iface: wlan0): no exported connection
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:0b:00.0/net/wmaster0, iface: wmaster0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:0b:00.0/net/wmaster0, iface: wmaster0): no exported connection
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no exported connection
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/pan0, iface: pan0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/pan0, iface: pan0): no exported connection
NetworkManager: SCPlugin-Ifupdown: end _init.
NetworkManager: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
NetworkManager: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager: <info> Found radio killswitch rfkill3 (at /sys/devices/pci0000:00/0000:00:1c.1/0000:0b:00.0/ieee80211/phy0/rfkill3) (driver <unknown>)
NetworkManager: <info> Found radio killswitch rfkill1 (at /sys/devices/virtual/rfkill/rfkill1) (driver <unknown>)
NetworkManager: <info> Wireless now enabled by radio killswitch
NetworkManager: SCPlugin-Ifupdown: (144260384) ... get_connections.
NetworkManager: SCPlugin-Ifupdown: (144260384) ... get_connections (managed=false): return empty list.
NetworkManager: Ifupdown: get unmanaged devices count: 0
NetworkManager: <info> (eth0): new Ethernet device (driver: 'sky2')
NetworkManager: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
NetworkManager: <info> (eth0): now managed
NetworkManager: <info> (eth0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info> (eth0): bringing up device.
NetworkManager: <info> (eth0): preparing device.
NetworkManager: <info> (eth0): deactivating device (reason: 2).
NetworkManager: Added default wired connection 'Auto eth0' for /sys/devices/pci0000:00/0000:00:1c.0/0000:09:00.0/net/eth0
NetworkManager: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
NetworkManager: <info> (wlan0): new 802.11 WiFi device (driver: 'iwl3945')
NetworkManager: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1
NetworkManager: <info> (wlan0): now managed
NetworkManager: <info> (wlan0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info> (wlan0): bringing up device.
NetworkManager: <info> (wlan0): preparing device.
NetworkManager: <info> (wlan0): deactivating device (reason: 2).
NetworkManager: supplicant_interface_acquire: assertion `mgr_state == NM_SUPPLICANT_MANAGER_STATE_IDLE' failed
NetworkManager: <WARN> device_creator(): /sys/devices/virtual/net/pan0: couldn't determine device driver; ignoring...
NetworkManager: <info> Trying to start the supplicant...
NetworkManager: <WARN> user_connection_get_settings_cb(): user_connection_get_settings_cb: Invalid connection: 'NMSetting8021x' / 'client-cert' invalid: 2
NetworkManager: <info> (wlan0): supplicant manager state: down -> idle
NetworkManager: <info> (wlan0): device state change: 2 -> 3 (reason 0)
NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready
NetworkManager: <WARN> wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/1 failed to activate (timeout): (0) Connection was not provided by any settings service
NetworkManager: <WARN> wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/1 failed to activate (timeout): (0) Connection was not provided by any settings service

ProblemType: Bug
Architecture: i386
CRDA: Error: [Errno 2] Nessun file o directory
Date: Thu Sep 17 10:41:43 2009
DistroRelease: Ubuntu 9.10
IfupdownConfig:
 auto lo
 iface lo inet loopback
IpRoute:
 149.132.24.0/24 dev wlan0 proto kernel scope link src 149.132.24.212
 default via 149.132.24.1 dev wlan0
NonfreeKernelModules: nvidia
Package: network-manager 0.8~a~git.20090911t130220.4c77fa0-0ubuntu5
ProcEnviron:
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SourcePackage: network-manager
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
fumozzo (enri-fuma) wrote :
description: updated
Revision history for this message
fumozzo (enri-fuma) wrote :

I installed an old version of nm-applet (the one from jaunty). And now I can connect without any problem. So I think the problem is in one of the last updates of nm-applet.

affects: network-manager (Ubuntu) → network-manager-applet (Ubuntu)
Revision history for this message
fumozzo (enri-fuma) wrote :

These lines appear in syslog after clicking on Connect:

NetworkManager: user_connection_updated_cb: assertion `old_connection != NULL' failed

NetworkManager: <WARN> user_connection_get_settings_cb(): user_connection_get_settings_cb: Invalid connection: 'NMSetting8021x' / 'client-cert' invalid: 2

NetworkManager: <WARN> wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkMan

summary: - Network Manager can't connect anymore to a WPA2 EAP-TLS protected
- wireless network
+ Network Manager can't connect to hidden wireless networks
Revision history for this message
fumozzo (enri-fuma) wrote :

Launching nm-applet from the terminal this is the output after I click on connect:

** (nm-applet:5903): CRITICAL **: crypto_get_private_key_data: assertion `password != NULL' failed

** (nm-applet:5903): CRITICAL **: crypto_get_private_key_data: assertion `password != NULL' failed

** (nm-applet:5903): WARNING **: Unhandled setting secret type (write) '802-1x/private-key' : 'GArray_guchar_'

** (nm-applet:5903): WARNING **: Unhandled setting secret type (write) '802-1x/phase2-private-key' : 'GArray_guchar_'

** (nm-applet:5903): CRITICAL **: crypto_get_private_key_data: assertion `password != NULL' failed

** (nm-applet:5903): WARNING **: <WARN> activate_device_cb(): Device Activation failed: Connection was not provided by any settings service

Revision history for this message
fumozzo (enri-fuma) wrote :

Another thing I noticed:

If I launch nm-connection-editor from the terminal I get the following line after clicking on Apply after the configuration:

edit_done_cb: invalid connection after update: bug in the 'NMSetting8021x' / 'client-cert' invalid: 2

If use the working version of nm-applet that line doesn't appear.

Revision history for this message
takafumi (fujii-takafumi) wrote :

I confirmed to do not duplicate this bug by using bug#432374 packages set.

Revision history for this message
Alexander Sack (asac) wrote :

i think this is fixed upstream. your client-cert settings seems to be stored wrongly. Please confirm after next upload; reopen if that did not help.

Changed in network-manager-applet (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager-applet - 0.8~a~git.20091002t194214.8515a07-0ubuntu1

---------------
network-manager-applet (0.8~a~git.20091002t194214.8515a07-0ubuntu1) karmic; urgency=low

  * upstream snapshot 2009-10-02 19:42:14 (GMT)
    + 8515a07e507847c4372fe8f95bddf57aea66acd5
  * fixed upstream
    - LP: #285219 - Critical warning while running nm-connection-editor
    - LP: #442988 - network manager mobile broadband does not remember username
      and password
    - LP: #439956 - Cannot set manual IP and DNS with nm-connection-editor
    - LP: #438160 - nm-applet loses ipv4 configuration
    - LP: #431265 - Network Manager can't connect to hidden wireless networks
    - LP: #443049 - MASTER nm-connection-editor crashed with SIGSEGV in get_permissions_cb
    - LP: #438374 - Failure to retain edited MTU value
    - LP: #436839 - Disconnect menu option looks like wireless network

  [ Tony Espy <email address hidden> ]
  * drop wifi toplevel_sort patch that was committed upstream
    - delete debian/patches/wifi_toplevel_ap_sort.patch
    - update debian/patches/series

  [ Alexander Sack <email address hidden> ]
  * drop preview patch that was committed upstream
    - delete debian/patches/nm08-applet-preview.patch
    - update debian/patches/series
  * require network-manager and libnm-* >= 0.8~a~git.20090930t162132
    - update debian/control
  * adjust patches to new upstream code base
    - update debian/patches/lp341684_device_sensitive_disconnect_notify.patch
  * (re-)sort wifi toplevel AP list alphabetically before adding to menu
    - add debian/patches/toplevel_sort.patch
    - update debian/patches/series
  * rebuild against latest NM after padding additions to libnm-* APIs
    - update debian/control

 -- Alexander Sack <email address hidden> Mon, 05 Oct 2009 23:45:07 +0200

Changed in network-manager-applet (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Amedeo (amedeoiantorno) wrote :

I have the same problem

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.