Cannot connect to WPA2/WPA Enterprise (PEAP and MSCHAP)

I cannot connect to my campus Wi-Fi connection through Ubuntu 13.04 but I can do the same through Windows.

[ 1293.944518] wlan0: authenticate with 00:1a:1e:d5:f0:30
[ 1293.953216] wlan0: send auth to 00:1a:1e:d5:f0:30 (try 1/3)
[ 1294.154557] wlan0: send auth to 00:1a:1e:d5:f0:30 (try 2/3)
[ 1294.358428] wlan0: send auth to 00:1a:1e:d5:f0:30 (try 3/3)
[ 1294.562357] wlan0: authentication with 00:1a:1e:d5:f0:30 timed out

The same thing keeps occurring.


Solution 1:

I had the same problem, but I found a solution in this bug report:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1104476 (post 19)

Removing "system-ca-certs=true" from /etc/NetworkManager/system-connections may solve your problem.

Solution 2:

In Ubuntu 16.04 LTS:

  1. Click on the Wi-Fi icon on the rigth corner and click "Edit Connections..."
  2. Select your Wi-Fi network (eduroam) and click "Edit"
  3. Click "Wi-Fi Security" tab
  4. Set Authentication to "Protected EAP (PEAP)"
  5. Tick "No CA certificate is required"
  6. Set PEAP Version to "Automatic"
  7. Set Inner Authentication to "MSCHAPv2"
  8. Type your username and password
  9. Click "Save"

You should be able to connect now. Editing the file in system-connections folder did not work for me.

Solution 3:

I noticed that there aren't any lines like system-ca-certs=true in /etc/NetworkManager/system-connections/<SSID>, so I resolved in this way:

  1. Turn off WiFi
  2. Add on a new line system-ca-certs=false
  3. Turn on WiFi (the line will be deleted automatically)