From: Jouni Malinen Date: Sun, 17 Jul 2016 08:22:04 +0000 (+0300) Subject: tests: IEEE 802.1X connection with LEAP included in configuration X-Git-Tag: hostap_2_6~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1150e56666c362150e158150ca0f253c7a558a1;p=thirdparty%2Fhostap.git tests: IEEE 802.1X connection with LEAP included in configuration Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ieee8021x.py b/tests/hwsim/test_ieee8021x.py index a6f675391..9c5282b9e 100644 --- a/tests/hwsim/test_ieee8021x.py +++ b/tests/hwsim/test_ieee8021x.py @@ -393,3 +393,21 @@ def test_ieee8021x_auth_awhile(dev, apdev): ev = hapd.wait_event(["CTRL-EVENT-EAP-PROPOSED"], timeout=10) if ev is None: raise Exception("Authentication restart not seen") + +def test_ieee8021x_open_leap(dev, apdev): + """IEEE 802.1X connection with LEAP included in configuration""" + params = hostapd.radius_params() + params["ssid"] = "ieee8021x-open" + params["ieee8021x"] = "1" + hapd = hostapd.add_ap(apdev[0], params) + + dev[1].connect("ieee8021x-open", key_mgmt="IEEE8021X", eapol_flags="0", + eap="LEAP", identity="psk.user@example.com", + password_hex="0123456789abcdef0123456789abcdef", + scan_freq="2412", wait_connect=False) + dev[0].connect("ieee8021x-open", key_mgmt="IEEE8021X", eapol_flags="0", + eap="PSK LEAP", identity="psk.user@example.com", + password_hex="0123456789abcdef0123456789abcdef", + scan_freq="2412") + ev = dev[1].wait_event(["CTRL-EVENT-AUTH-REJECT"], timeout=5) + dev[1].request("DISCONNECT")