802.11x fails for wired connections (wireless works)

Bug #422597 reported by FrejSoya
54
This bug affects 8 people
Affects Status Importance Assigned to Milestone
NetworkManager
Fix Released
High
network-manager (Ubuntu)
Fix Released
Undecided
Alexander Sack

Bug Description

Binary package hint: network-manager

Wireless WPA2 Enterprise (802.11x) works fine in an eduroam setting. But trying the same authentication for a wired connection it fails in some configuration step as stated in the log below. It's the exact same authentication information for either connection.
This is for the karmic version or the network-manager ppa. Both show the same error

Sep 1 16:05:00 macsoy NetworkManager: <info> Policy set 'Auto eduroam' (ath0) as default for routing and DNS.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) starting connection 'Wired Eduroam'
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 3 -> 4 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 4 -> 5 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0/wired): connection 'Wired Eduroam' has security, but secrets are required.
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 5 -> 6 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 6 -> 4 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 4 -> 5 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0/wired): connection 'Wired Eduroam' requires no security. No secrets needed.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): supplicant interface state: starting -> ready
Sep 1 16:05:00 macsoy NetworkManager: dbus_g_proxy_get_path: assertion `DBUS_IS_G_PROXY (proxy)' failed
Sep 1 16:05:00 macsoy NetworkManager: nm_supplicant_config_add_setting_8021x: assertion `connection_uid != NULL' failed
Sep 1 16:05:00 macsoy NetworkManager: <WARN> build_supplicant_config(): Couldn't add 802.1X security setting to supplicant config.
Sep 1 16:05:00 macsoy NetworkManager: <WARN> supplicant_iface_state_cb_handler(): Activation (eth0/wired): couldn't build security configuration.
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 5 -> 9 (reason 9)
Sep 1 16:05:00 macsoy NetworkManager: <info> Marking connection 'Wired Eduroam' invalid.
Sep 1 16:05:00 macsoy NetworkManager: <info> Activation (eth0) failed.
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): device state change: 9 -> 3 (reason 0)
Sep 1 16:05:00 macsoy NetworkManager: <info> (eth0): deactivating device (reason: 0).
Sep 1 16:05:00 macsoy NetworkManager: <info> Clearing nscd hosts cache.

FrejSoya (frej)
description: updated
Revision history for this message
Joern (linuxjoern) wrote :

Hi FrejSoya,

802.11x Authentification could only be used for non-wired connections.

best wishes
    Bassbluete

Revision history for this message
FrejSoya (frej) wrote :

Well i mean 802.1x authentication support (802.11x is not even authentication or a spec at all), however it can surely be used on wired connections. NM has worked fine with wired 802.1x least since 8.04. I think wpa_supplicant has had support for 3-4 years.

Please don't state otherwise... this bug is simple a regression ;).

tags: added: regression-potential
Revision history for this message
Alexander Sack (asac) wrote :

please run apport-collect 422597 to attach all the default info we want for a nm bug.

Changed in network-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Alexander Sack (asac) wrote :

also there is a /var/log/wpa_supplicant.log iirc ... clean that ... restart everything and reproduce. then attach that file.

Revision history for this message
FrejSoya (frej) wrote :

This is pointless... nm fails when setting up wpa_supp config and then you want a log from wpa_supp.

Wireless and wired uses diffent codepaths for setting up wpa_supp config...
Just close this, it's not worth the effort... I reported the bug upstream with a patch that works for me.

Revision history for this message
Kjell L. (lkjell) wrote :

I made a new bug which looks like this one. https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/439018
FrejSoya do you have the patch?

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

Frej, did the patch land upstream. could you give us a bug id so we can help drive this in and ensure that the fix is in ubuntu?

Revision history for this message
FrejSoya (frej) wrote :

No action upstream, i just looked how wireless was implemented and copied that approach.

https://bugzilla.gnome.org/show_bug.cgi?id=594038

Revision history for this message
Kjell L. (lkjell) wrote :

Wonderful. I will just use Jaunty version of nm. The new version does not give you anything extra than maybe some hearts.
BTW Sack shall you close the bug 439018 or link it as duplicate?

Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

Please comment wrt status of this issue. Please re-assign/un-assign as appropriate.

Changed in network-manager (Ubuntu):
assignee: nobody → Alexander Sack (asac)
Revision history for this message
Alexander Sack (asac) wrote :

Frej, thx. i made about the same patch in bug 422597 ;) ... will commit this with you as author though. next time directly provide facts (patch, upstream bug if) please!!

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

committed upstream: e3ae3efc094eb9e51cf1fe0f044eb2789b5b151a

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

This bug was fixed in the package network-manager - 0.8~a~git.20091005t192303.1d28ad1-0ubuntu1

---------------
network-manager (0.8~a~git.20091005t192303.1d28ad1-0ubuntu1) karmic; urgency=low

  * upstream snapshot 2009-10-05 19:23:03 (GMT)
    + 1d28ad1aa54bacf6b6b64582ee7c41d9728d7304
  * fixed upstream
    - LP: #413622 - Network manager does not unmanage devices configured as
      "mapping" in /etc/network/interfaces
    - LP: #413967 - Network manager does not connect wlan0 on startup
    - LP: #417719 - Disconnected static wired network initially treated as
      connected
    - LP: #422597 - 802.11x fails for wired connections (wireless works)
    - LP: #438771 - Creating a wireless or DSL connection fails with
      "Error editing connection: property '%s' / '%s' invalid: %d"
    - LP: #443423 - Connection properties are not stored
    - LP: #439221 - cannot create wireless Wpa & Wpa2 connection with GUI
    - LP: #441668 - network-manager does not save modifications on GSM
      connections
    - LP: #438454 - NetworkManager fails to set IP and route information entered

  [ Mathieu Trudel <email address hidden> ]
  * updated pkcs11 smartcard patch
    - updated debian/patches/lp120363_smartcard_pkcs11.patch
  * add new 802.1x symbols to libnm-util1.symbols
    - update debian/libnm-util1.symbols

  [ Alexander Sack <email address hidden> ]
  * drop cherry-pick now applied upstream
    - delete debian/patches/lp436884.patch
    - update debian/patches/series
  * extend apport hook to also append /etc/NetworkManager/nm-system-settings.conf
    - update debian/source_network-manager.py

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

Changed in network-manager (Ubuntu):
status: Fix Committed → Fix Released
Changed in network-manager:
importance: Unknown → High
status: Unknown → 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.