EAP Wireless Authentication

The university uses EduRoam for authentication, but it’s really flakey.
When I arrived this morning at 9, it took about 10 minutes until WiFi connected. Understandably there was hardly anyone around at that time of morning.
I did a little research and found a standalone command line client, wpa_supplicant 0.7.3, but had some problems compiling it.

In the end a couple of modifications made it work,

Remove scan_helpers.c from the project as the file doesn’t exist.

Add to the project source the file bss.c
(Possibly also add wpa_supplicant.c & .h and bss.h?)

There are some problems with the sample .config file too.
Line 696: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.

These sample blocks need to be commented out.
Similarly for PSK, IKEV2, and FAST.

Also, in order to build wpa_cli, you need to duplicate the wpa_supplicant target, then remove the original main.c and replace it with wpa_cli.c.
You’ll also need to add ../../src/common/wpa_ctrl.c & .h
Also, Right click and Get Info on the target wpa_client, then in the Build tab change Product Name from “wpa_supplicant” to “wpa_cli”

I still haven’t worked out how to configure it to get it running though…
Trying to run the service still fails,

$ ./wpa_supplicant -ien1 -c /etc/wpa_supplicant.conf -dd

WirelessAttach: IOServiceOpen error: e00002c7
OSX: WirelessAttach failed: -2013261827
Failed to initialize driver interface
Failed to add interface en1
Cancelling scan request
Cancelling authentication timeout

Looks like its a driver problem that’s unlikely to be fixed any time soon 😦
There’s a bug report for the macport of “airport”. Similarly QuickSilver had this problem too.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s