After creating the profile using eapolcfg and attempting to connect to the enterprise network, eapolclient connection fails.

I use eapolcfg in Apple's open source eap8021x repository to connect to the enterprise network. 1.https://github.com/gfleury/eap8021x-debug

https://opensource.apple.com/source/eap8021x/eap8021x-304.100.1/

Our enterprise network authentication is PEAP. So far, I have created a profile using the following commands and have done the access.

./eapolcfg  createProfile --authType PEAP --SSID myssid --securityType WPA2 --userDefinedName MyProfile

./eapolcfg setPasswordItem --password mypassword --name myname --SSID myssid

./eapolcfg startAuthentication --interface en0 --SSID myssid

After I performed this series of operations, I passed

BOOL success = [self.interface associateToEnterpriseNetwork:network identity:nil username:username password:password error:&error];

Connection will pop up the following pop-up window, sometimes associateToEnterpriseNetwork will fail. I don't know what went wrong, is it that I missed some steps through the eapolcfg [tool?]

This function also reports the following error:Error Domain=com.apple.coreWLAN.EAPOL.error Code=1 "(null)" Please answer my questions. Thank you very much

This function also reports … Domain=com.apple.coreWLAN.EAPOL.error Code=1

AFAICT the EAPOL error domain uses errno-style values for its error, which suggests that this is EPERM. There seems to be a lot of potential reasons for EPERM in this context. My only suggestion for further debugging this is to have an in-depth look in the system log.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

After creating the profile using eapolcfg and attempting to connect to the enterprise network, eapolclient connection fails.
 
 
Q