• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

WPA Enterprise: TTLS/PAP connection problem

Hey guys. i'm trying to connect to my school's network, which uses TTLS and PAP as EAP and phase 2 authentication. I'm using an HTC Legend running android 2.1. The phone sees the network, when i try to connect it gives me the options and i select everything as specified but the network just does not connect

this is what the logs filtered for wpa_supplicant show

07-13 14:31:31.229 I/wpa_supplicant( 5077): wpa_supplicant enter
07-13 14:31:31.869 I/wpa_supplicant( 5077): wpa_supplicant_run
07-13 14:31:31.978 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=2
07-13 14:31:33.218 I/wpa_supplicant( 5077): CTRL-EVENT-SCAN-RESULTS Ready
07-13 14:31:33.218 I/wpa_supplicant( 5077): - wpa_supplicant_event_scan_results RETURN (ap_scan = 2)-
07-13 14:31:44.448 I/wpa_supplicant( 5077): CTRL-EVENT-SCAN-RESULTS Ready
07-13 14:31:44.448 I/wpa_supplicant( 5077): Trying to associate with 00:22:90:a1:0b:a0 (SSID='ConcordiaUniversity' freq=2437 MHz)
07-13 14:31:44.448 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=3
07-13 14:31:44.508 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=4
07-13 14:31:44.508 I/wpa_supplicant( 5077): Associated with 00:22:90:a1:0b:a0
07-13 14:31:44.518 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:31:44.518 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:31:44.518 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-STARTED EAP authentication started
07-13 14:31:44.518 W/wpa_supplicant( 5077): EAP: buildIdentity: identity configuration was not available
07-13 14:31:44.518 W/wpa_supplicant( 5077): [EAP-MSG] eap_sm_imsi_identity@926: IMSI not obtained yet.
07-13 14:31:44.518 I/wpa_supplicant( 5077): CTRL-REQ-IDENTITY-2:Identity needed for SSID ConcordiaUniversity
07-13 14:31:44.518 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-STARTED EAP authentication started
07-13 14:31:44.518 W/wpa_supplicant( 5077): EAP: buildIdentity: identity configuration was not available
07-13 14:31:44.518 W/wpa_supplicant( 5077): [EAP-MSG] eap_sm_imsi_identity@937: TmpIdentity: 302610001378583 (15)
07-13 14:31:44.528 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected
07-13 14:31:44.819 I/wpa_supplicant( 5077): OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0)
07-13 14:31:45.836 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-FAILURE EAP authentication failed
07-13 14:31:50.526 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:31:50.538 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-STARTED EAP authentication started
07-13 14:31:50.538 W/wpa_supplicant( 5077): EAP: buildIdentity: identity configuration was not available
07-13 14:31:50.538 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected
07-13 14:31:50.740 I/wpa_supplicant( 5077): OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0)
07-13 14:31:51.755 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-FAILURE EAP authentication failed
07-13 14:31:56.442 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:31:56.448 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-STARTED EAP authentication started
07-13 14:31:56.448 W/wpa_supplicant( 5077): EAP: buildIdentity: identity configuration was not available
07-13 14:31:56.448 I/wpa_supplicant( 5077): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
07-13 14:31:56.458 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=0
07-13 14:31:56.549 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=2
07-13 14:31:57.785 I/wpa_supplicant( 5077): CTRL-EVENT-SCAN-RESULTS Ready
07-13 14:31:57.788 I/wpa_supplicant( 5077): Trying to associate with 00:22:90:a1:0b:a0 (SSID='ConcordiaUniversity' freq=2437 MHz)
07-13 14:31:57.798 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=3
07-13 14:31:57.808 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=0
07-13 14:31:57.858 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=4
07-13 14:31:57.868 I/wpa_supplicant( 5077): No network configuration found for the current AP
07-13 14:31:57.868 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=0
07-13 14:31:57.868 I/wpa_supplicant( 5077): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
07-13 14:31:57.878 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=0
07-13 14:31:58.946 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=2
07-13 14:32:00.179 I/wpa_supplicant( 5077): CTRL-EVENT-SCAN-RESULTS Ready
07-13 14:32:00.179 I/wpa_supplicant( 5077): wpa_disabled_ssid_list_clear
07-13 14:32:00.179 I/wpa_supplicant( 5077): clear disable: ConcordiaUniversity
07-13 14:32:00.179 I/wpa_supplicant( 5077): Trying to associate with 00:22:90:a1:0b:a0 (SSID='ConcordiaUniversity' freq=2437 MHz)
07-13 14:32:00.179 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=-1 state=3
07-13 14:32:00.188 V/WifiMonitor( 79): Event [wpa_disabled_ssid_list_clear]
07-13 14:32:00.228 I/wpa_supplicant( 5077): CTRL-EVENT-STATE-CHANGE id=2 state=4
07-13 14:32:00.228 I/wpa_supplicant( 5077): Associated with 00:22:90:a1:0b:a0
07-13 14:32:00.228 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:32:00.238 I/wpa_supplicant( 5077): CTRL-REQ-CUSTOMIZATION-0:Identity
07-13 14:32:00.238 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-STARTED EAP authentication started
07-13 14:32:00.238 W/wpa_supplicant( 5077): EAP: buildIdentity: identity configuration was not available
07-13 14:32:00.248 I/wpa_supplicant( 5077): CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected
i've highlighted the part that i think is more relevant: the error about identity configuration not being available. That error keeps appearing over and over every time it tries to reconnect

my laptop running linux connects just fine and it gives me some info that i think i could add to wpa_supplicant.conf but i don't want to root my phone. anyway, here is the info:

Jul 13 13:21:49 chapul NetworkManager: <info> Activation (wlan0/wireless): connection 'Auto ConcordiaUniversity' has securit
y, and secrets exist. No new secrets needed.
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'ssid' value 'ConcordiaUniversity'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'scan_ssid' value '1'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'key_mgmt' value 'WPA-EAP'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'password' value '<omitted>'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'eap' value 'TTLS'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'fragment_size' value '1300'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'phase2' value 'auth=PAP'
Jul 13 13:21:49 chapul NetworkManager: <info> Config: added 'identity' value 'myuser'
Jul 13 13:21:49 chapul NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Jul 13 13:21:49 chapul NetworkManager: <info> Config: set interface ap_scan to 1
Jul 13 13:21:49 chapul NetworkManager: <info> (wlan0): supplicant connection state: disconnected -> scanning
Jul 13 13:21:55 chapul wpa_supplicant[768]: Trying to associate with 00:22:90:a1:0b:a0 (SSID='ConcordiaUniversity' freq=2437
MHz)
can someone see anything wrong from the logs or suggest something else to try?? the one thing i would like to try would be to import a certificate for the wifi into my phone but i'm not even sure the connection is using one. I thought WPA enterprise always used certificates but in the instructions the university gave me it says to leave "certificate file" empty
 
Hey guys. i'm trying to connect to my school's network, which uses TTLS and PAP as EAP and phase 2 authentication. I'm using an HTC Legend running android 2.1. The phone sees the network, when i try to connect it gives me the options and i select everything as specified but the network just does not connect

this is what the logs filtered for wpa_supplicant show

i've highlighted the part that i think is more relevant: the error about identity configuration not being available. That error keeps appearing over and over every time it tries to reconnect

my laptop running linux connects just fine and it gives me some info that i think i could add to wpa_supplicant.conf but i don't want to root my phone. anyway, here is the info:

can someone see anything wrong from the logs or suggest something else to try?? the one thing i would like to try would be to import a certificate for the wifi into my phone but i'm not even sure the connection is using one. I thought WPA enterprise always used certificates but in the instructions the university gave me it says to leave "certificate file" empty

Make sure you have entered your key correctly & set the correct version of wpa
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones