From 405c621cdbc7b11a09c3bac3a4d1c4d06a27fd7f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 1 Jul 2015 00:34:27 +0300 Subject: [PATCH] tests: WPA2-Enterprise connection using MAC ACL Signed-off-by: Jouni Malinen --- tests/hwsim/auth_serv/eap_user.conf | 1 + tests/hwsim/test_ap_eap.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index 4debe48b4..3738e6c9d 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -49,6 +49,7 @@ radius_accept_attr=27:d:3 "020000000000" MACACL "020000000000" "020000000100" MACACL "020000000100" +radius_accept_attr=1:s:test-user radius_accept_attr=89:s:macacl-cui-test "0232010000000000@ttls" TTLS,AKA diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 6fa78c096..628a54636 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -3308,3 +3308,12 @@ def test_ap_wpa2_eap_tls_oom(dev, apdev): raise Exception("No passphrase request") dev[0].request("REMOVE_NETWORK all") dev[0].wait_disconnected() + +def test_ap_wpa2_eap_tls_macacl(dev, apdev): + """WPA2-Enterprise connection using MAC ACL""" + params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") + params["macaddr_acl"] = "2" + hostapd.add_ap(apdev[0]['ifname'], params) + eap_connect(dev[1], apdev[0], "TLS", "tls user", ca_cert="auth_serv/ca.pem", + client_cert="auth_serv/user.pem", + private_key="auth_serv/user.key")