We're testing a client that we're building (based on wpa_supplicant on
linux), so would like to confirm the different auth methods are actually
connecting as configured.
I would say to use 2.0. The new "unlang" policy language makes this
much easier.
I was thinking something like:
test-pap Auth-Type = PAP, User-Password := "pap-test"
test-chap Auth-Type = CHAP, User-Password := "chap-test"
Or...
if (User-Name == "test-pap") {
if (User-Password) {
update control {
Cleartext-Password := "pap-test"
}
}
else {
# test failed, do something...
reject
}
}
It's a lot more verbose, but also a lot clearer, I think.