Re: [PATCH] LEAP support in NetworkManager



Dan Williams wrote:
On Fri, 2006-10-13 at 01:04 -0300, Thiago Bauermann wrote:
2006/9/8, Thiago Bauermann <thiago bauermann gmail com>:
        2006/9/8, Jason Martens <me jasonmartens com>:
                Jason Martens wrote:
                > Yes, I was still able to connect after removing the
                "auth_alg=OPEN LEAP"
                > line.
                >
                Have these changes made it into CVS yet? If so, I'll
re-compile and try them out. :) Sorry pal. Still didn't get around to do it, but I believe I
        will in the next few days...

Mmmm... was more than a few days. But here it is, finally.
This patch adds Pairwise and Group options to the LEAP configuration
dialog, which should address your wpa supplicant configuration.

Looking over this again though, do we really need to add this option?
By default, the LEAP stuff doesn't specify auth_alg, which means
wpa_supplicant should be using "OPEN LEAP" as the auth_alg by default.
The next question I have is whether or not Jason's setup works when he
leaves out the 'group' and 'pairwise' options.  If so, then we probably
don't need the patch here to specify them (sorry Thiago, very great work
so far, I just want to make sure we really need more UI options before
we add them).

Some APs seem to require exactly the configuration that they support,
and also that if you are using a hidden SSID, you have to specify only
the configuration options which the AP supports.

Jason?  Can you test removing the 'group' and 'pairwise' options from
your wpa_supplicant config and see if that works as well?
Alright, I tried it without the group and pairwise options, and it works using wpa_supplicant, so I re-installed my pre-Thiago patch NM, and tried to connect to the AP using the existing LEAP support, which failed. So, I have still yet to successfully connect to this AP using NM. Below is the (most recent) working wpa_supplicant config, and the syslog of NM trying to connect to the same AP (without the extra LEAP options). Oct 13 13:46:07 mouse NetworkManager: <debug> [1160765167.730646] nm_device_802_11_wireless_get_activation_ap(): Forcing AP 'APNAME' Oct 13 13:46:07 mouse NetworkManager: <info> User Switch: /org/freedesktop/NetworkManager/Devices/eth2_5f_rename / APNAME Oct 13 13:46:07 mouse NetworkManager: <info> Deactivating device eth2_rename. Oct 13 13:46:07 mouse dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth2_rename for sub-path eth2_rename.dbus.get.reason Oct 13 13:46:07 mouse NetworkManager: <info> Device eth2_rename activation scheduled... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) started... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) Stage 1 of 5 (Device Prepare) scheduled... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) Stage 1 of 5 (Device Prepare) started... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) Stage 2 of 5 (Device Configure) scheduled... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) Stage 1 of 5 (Device Prepare) complete. Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename) Stage 2 of 5 (Device Configure) starting... Oct 13 13:46:07 mouse NetworkManager: <info> Activation (eth2_rename/wireless): access point 'APNAME' is encrypted, and a key exists. No new key needed. Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'INTERFACE_ADD eth2_rename^I^Iwext^I/var/run/wpa_supplicant^I'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'AP_SCAN 2'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'ADD_NETWORK'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was '0'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 ssid some numbers'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 scan_ssid 1'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 proto WPA'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 key_mgmt WPA-EAP'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 eap LEAP'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 identity "jmartens"'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'SET_NETWORK 0 password <password>'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> SUP: sending command 'ENABLE_NETWORK 0'
Oct 13 13:46:08 mouse NetworkManager: <info>  SUP: response was 'OK'
Oct 13 13:46:08 mouse NetworkManager: <info> Activation (eth2_rename) Stage 2 of 5 (Device Configure) complete. Oct 13 13:46:08 mouse NetworkManager: <info> Old device 'eth2_rename' activating, won't change.
Oct 13 13:46:18 mouse last message repeated 26 times
Oct 13 13:46:18 mouse kernel: eth2_rename: no IPv6 routers present
Oct 13 13:46:18 mouse NetworkManager: <info> Old device 'eth2_rename' activating, won't change.
Oct 13 13:46:27 mouse last message repeated 25 times
Oct 13 13:46:28 mouse NetworkManager: <info> Activation (eth2_rename/wireless): association took too long (>20s), failing activation. Oct 13 13:46:28 mouse NetworkManager: <info> Activation (eth2_rename) failure scheduled...
Oct 13 13:46:28 mouse NetworkManager: <info>  eth2_rename: link timed out.
Oct 13 13:46:28 mouse NetworkManager: <info> Activation (eth2_rename) failed for access point (APNAME) Oct 13 13:46:28 mouse NetworkManager: <info> Activation (eth2_rename) failed. Oct 13 13:46:28 mouse NetworkManager: <info> Deactivating device eth2_rename.

And the wpa_supplicant conf file:
network={
       ssid="APNAME"
       scan_ssid=1
       key_mgmt=WPA-EAP
#       group=TKIP
#       pairwise=TKIP
#       auth_alg=OPEN LEAP
       eap=LEAP
       priority=2
       proto=WPA
       identity="jmartens"
       password="password"
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]