From 4056b0c747212473cc4c0a092fcfb5bcc5a1584d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 10 Mar 2014 11:16:29 +0200 Subject: [PATCH] tests: RADIUS Class attribute Signed-off-by: Jouni Malinen --- tests/hwsim/auth_serv/eap_user.conf | 4 ++++ tests/hwsim/test_radius.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index 9211f8a1d..28ca32783 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -18,8 +18,12 @@ radius_accept_attr=64:d:13 radius_accept_attr=65:d:6 radius_accept_attr=81:s:2 +"test-class" PAX 0123456789abcdef0123456789abcdef +radius_accept_attr=25:x:00112233445566778899 + "gpsk-cui" GPSK "abcdefghijklmnop0123456789abcdef" radius_accept_attr=89:s:gpsk-chargeable-user-identity +radius_accept_attr=25:x:00112233445566778899aa "0"* AKA "1"* SIM diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index 881333c9a..9e98aaf0b 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -68,6 +68,9 @@ def test_radius_acct(dev, apdev): hostapd.add_ap(apdev[0]['ifname'], params) hapd = hostapd.Hostapd(apdev[0]['ifname']) connect(dev[0], "radius-acct") + dev[1].connect("radius-acct", key_mgmt="WPA-EAP", scan_freq="2412", + eap="PAX", identity="test-class", + password_hex="0123456789abcdef0123456789abcdef") logger.info("Checking for RADIUS counters") count = 0 while True: