--- /dev/null
+Sent Access-Request Id 123 from 0.0.0.0:1244 to 127.0.0.1:12351 length 72
+ User-Name = "bob"
+ User-Password = "hello"
+ NAS-Identifier = "originate"
+ Password.Cleartext = "hello"
+Received Access-Accept Id 123 from 127.0.0.1:12360 to 0.0.0.0:1244 via lo length 63
+ Reply-Message = "Successfully originated"
+(0) src/tests/radclient/auth_originate.txt response code 2
--- /dev/null
+#
+# ARGV: -i 123 -c 1 -x -F
+#
+User-Name = "bob",
+User-Password = "hello"
+NAS-Identifier := "originate"
--- /dev/null
+Sent Access-Request Id 123 from 0.0.0.0:1246 to 127.0.0.1:12351 length 45
+ User-Name = "proxy_detach"
+ User-Password = "hello"
+ Password.Cleartext = "hello"
+Received Access-Accept Id 123 from 127.0.0.1:12351 to 0.0.0.0:1246 via lo length 64
+ Reply-Message = "Detached subrequest sent"
+(0) src/tests/radclient/auth_proxy_detach.txt response code 2
--- /dev/null
+#
+# ARGV: -i 123 -c 1 -x -F
+#
+User-Name = "proxy_detach",
+User-Password = "hello"
return
}
+ if (User-Name == "proxy_detach") {
+ if (!NAS-Identifier) {
+ subrequest ::Access-Request {
+ request += parent.request
+ NAS-Identifier := 'detached-client'
+ detach
+ radius
+ }
+ reply.Reply-Message := 'Detached subrequest sent'
+ }
+ accept
+ return
+ }
+
if ((NAS-Identifier == "dynamic") && !Proxy-State) {
control.Auth-Type := ::dynamic-proxy
return