which checks that proxying is a success
--- /dev/null
+Sent Access-Request Id 123 from 0.0.0.0:1243 to 127.0.0.1:12351 length 45
+ User-Name = "bob"
+ User-Password = "hello"
+ NAS-Identifier = "dynamic"
+ Password.Cleartext = "hello"
+Received Access-Accept Id 123 from 127.0.0.1:12351 to 0.0.0.0:1243 via lo length 38
+ Reply-Message = "Have Proxy-State"
+ NAS-Port = 2
+(0) src/tests/radclient/auth_dynamic.txt response code 2
--- /dev/null
+#
+# ARGV: -i 123 -c 1 -x -F
+#
+User-Name = "bob",
+User-Password = "hello"
+NAS-Identifier := "dynamic"
}
}
+
+ radius proxy {
+ mode = dynamic-proxy
+
+ type = Access-Request
+ type = Accounting-Request
+
+ transport = udp
+ udp {
+ src_ipaddr = 127.0.0.1
+ secret = testing123
+ }
+ }
}
#
return
}
+ if ((&NAS-Identifier == "dynamic") && !&Proxy-State) {
+ &control.Auth-Type := ::dynamic-proxy
+ return
+ }
+
if (&User-Name == "bob") {
accept
} else {
radius
}
+ authenticate dynamic-proxy {
+ &reply.NAS-Port := %proxy.sendto.ipaddr(127.0.0.1, $ENV{TEST_PORT}, 'testing123')
+ ok
+ }
+
send Access-Accept {
if (&Proxy-State) {
&reply.Reply-Message := "Have Proxy-State"