aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-28 07:45:25 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-28 07:45:25 (GMT)
commitb898a6ee722bb5015b55c7568da461f38b7d288c (patch)
treeacad1a55eec5ee81166b9d292c976d1ab9f2164b
parent3e808b831ce315b41c222a17de3ff7836a34d490 (diff)
downloadhostap-b898a6ee722bb5015b55c7568da461f38b7d288c.zip
hostap-b898a6ee722bb5015b55c7568da461f38b7d288c.tar.gz
hostap-b898a6ee722bb5015b55c7568da461f38b7d288c.tar.bz2
tests: WPA2-Enterprise connection using EAP-pwd and NTHash
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/auth_serv/eap_user.conf1
-rw-r--r--tests/hwsim/test_ap_eap.py12
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf
index 102d0f3..6ef5470 100644
--- a/tests/hwsim/auth_serv/eap_user.conf
+++ b/tests/hwsim/auth_serv/eap_user.conf
@@ -1,4 +1,5 @@
"pwd user" PWD "secret password"
+"pwd-hash" PWD hash:e3718ece8ab74792cbbfffd316d2d19a
"pwd.user@test123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.example.com" PWD "secret password"
"gpsk user" GPSK "abcdefghijklmnop0123456789abcdef"
"sake user" SAKE 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index afc89c9..7ce9a26 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -1759,6 +1759,18 @@ def test_ap_wpa2_eap_pwd(dev, apdev):
password="secret password",
fragment_size="31")
+def test_ap_wpa2_eap_pwd_nthash(dev, apdev):
+ """WPA2-Enterprise connection using EAP-pwd and NTHash"""
+ check_eap_capa(dev[0], "PWD")
+ params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
+ hostapd.add_ap(apdev[0]['ifname'], params)
+ eap_connect(dev[0], apdev[0], "PWD", "pwd-hash", password="secret password")
+ eap_connect(dev[1], apdev[0], "PWD", "pwd-hash",
+ password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a")
+ eap_connect(dev[2], apdev[0], "PWD", "pwd user",
+ password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a",
+ expect_failure=True, local_error_report=True)
+
def test_ap_wpa2_eap_pwd_groups(dev, apdev):
"""WPA2-Enterprise connection using various EAP-pwd groups"""
check_eap_capa(dev[0], "PWD")