Browse Source

tests: RADIUS Class attribute

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 11 years ago
parent
commit
4056b0c747
2 changed files with 7 additions and 0 deletions
  1. 4 0
      tests/hwsim/auth_serv/eap_user.conf
  2. 3 0
      tests/hwsim/test_radius.py

+ 4 - 0
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

+ 3 - 0
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: