aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-02-01 15:37:35 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-01 15:37:35 (GMT)
commitf4cd0f64543197980a27b2ecc7c3bacb920503ef (patch)
tree4053d54fb3e8dec0e655aad8fd9ae47e5a310157
parent66bc6830d5fcd806d57932e402eeeb3a8b9cbc36 (diff)
downloadhostap-f4cd0f64543197980a27b2ecc7c3bacb920503ef.zip
hostap-f4cd0f64543197980a27b2ecc7c3bacb920503ef.tar.gz
hostap-f4cd0f64543197980a27b2ecc7c3bacb920503ef.tar.bz2
tests: EAP-PEAP/MSCHAPv2 password failure
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_eap.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index d00ec04..fb5f15e 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -1138,6 +1138,15 @@ def test_ap_wpa2_eap_peap_eap_mschapv2(dev, apdev):
ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
expect_failure=True)
+def test_ap_wpa2_eap_peap_eap_mschapv2_incorrect_password(dev, apdev):
+ """WPA2-Enterprise connection using EAP-PEAP/EAP-MSCHAPv2 - incorrect password"""
+ params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
+ hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+ eap_connect(dev[0], apdev[0], "PEAP", "user",
+ anonymous_identity="peap", password="wrong",
+ ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
+ expect_failure=True)
+
def test_ap_wpa2_eap_peap_crypto_binding(dev, apdev):
"""WPA2-Enterprise connection using EAP-PEAPv0/EAP-MSCHAPv2 and crypto binding"""
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")