I had real trouble connecting my Raspberry Pis (v3 Model Bs) to a WPA Enterprise network.
Here's what I did to get it to work.
For this example, my wifi network name is "WiFi Network", usernames and passwords have also been swapped out. The Wifi Country is GB.
Edit /etc/wpa_supplicant/wpa_supplicant.conf
with the following (using your "real" password):
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
# must set the correct country
country=GB
network={
ssid="WiFi Network"
scan_ssid=1
key_mgmt=WPA-EAP
group=CCMP TKIP
eap=PEAP
identity="my.wifi.username"
password="my.wifi.password"
phase1="peapver=0"
phase2="MSCHAPV2"
}
Run:
sudo iwconfig wlan0 essid "WiFi Network"
and reboot.