eap {
default_eap_type = md5
+ type = md5
+ type = leap
+ type = gtc
+ type = mschapv2
+
md5 {
}
# radiusd -Xd src/tests/ -i 127.0.0.1 -p 12340 -n test
#
server test {
- listen {
- type = detail
- filename = ${radacctdir}/detail
- load_factor = 10
- }
+ namespace = radius
+
+# listen {
+# type = detail
+# filename = ${radacctdir}/detail
+# load_factor = 10
+# }
listen {
- ipaddr = 127.0.0.1
- port = ${test_port}
- type = auth
+ type = Access-Request
+ type = Accounting-Request
+ transport = udp
+
+ udp {
+ ipaddr = 127.0.0.1
+ port = ${test_port}
+ }
}
-authorize {
+recv Access-Request {
update reply {
Test-Server-Port = "%{Packet-Dst-Port}"
}
pap
}
-authenticate {
+authenticate pap {
pap
+}
+
+authenticate chap {
chap
+}
+
+authenticate mschap {
mschap
+}
+
+authenticate digest {
digest
+}
+
+authenticate eap {
eap
}
-accounting {
+send Access-Accept {
+}
+
+send Access-Challenge {
+}
+
+send Access-Reject {
+}
+
+
+recv Accounting-Request {
if (Packet-Src-IP-Address != 255.255.255.255) {
detail
}
ok
}
+send Accounting-Response {
+}
+
}