From: Jouni Malinen Date: Sun, 5 Jan 2014 17:30:24 +0000 (+0200) Subject: tests: MSCHAPv2 password as hash value X-Git-Tag: hostap_2_1~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa0ddb1484b4a13f390ecc4f655b65801d1d258a;p=thirdparty%2Fhostap.git tests: MSCHAPv2 password as hash value Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index ea175ac08..9947b5c84 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -209,6 +209,13 @@ def test_ap_wpa2_eap_ttls_mschapv2(dev, apdev): if int(eapol2['backendAuthSuccesses']) <= int(eapol1['backendAuthSuccesses']): raise Exception("backendAuthSuccesses did not increase") + logger.info("Password as hash value") + dev[0].request("REMOVE_NETWORK all") + eap_connect(dev[0], apdev[0], "TTLS", "DOMAIN\mschapv2 user", + anonymous_identity="ttls", + password_hex="hash:8846f7eaee8fb117ad06bdd830b7586c", + ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2") + logger.info("Negative test with incorrect password") dev[0].request("REMOVE_NETWORK all") eap_connect(dev[0], apdev[0], "TTLS", "DOMAIN\mschapv2 user", @@ -268,6 +275,13 @@ def test_ap_wpa2_eap_peap_eap_mschapv2(dev, apdev): ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2", fragment_size="200") + logger.info("Password as hash value") + dev[0].request("REMOVE_NETWORK all") + eap_connect(dev[0], apdev[0], "PEAP", "user", + anonymous_identity="peap", + password_hex="hash:8846f7eaee8fb117ad06bdd830b7586c", + ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2") + logger.info("Negative test with incorrect password") dev[0].request("REMOVE_NETWORK all") eap_connect(dev[0], apdev[0], "PEAP", "user",