]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move RADIUS virtual servers to radius.conf
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 Jan 2021 17:17:06 +0000 (12:17 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Jan 2021 17:17:06 +0000 (12:17 -0500)
src/tests/keywords/radius.conf [new file with mode: 0644]
src/tests/keywords/unit_test_module.conf

diff --git a/src/tests/keywords/radius.conf b/src/tests/keywords/radius.conf
new file mode 100644 (file)
index 0000000..726522c
--- /dev/null
@@ -0,0 +1,49 @@
+#
+#  Virtual server for the RADIUS protocol.
+#
+server default {
+       namespace = radius
+
+       listen {
+               type = Access-Request
+       }
+
+       recv Access-Request {
+               update control {
+                       &Password.Cleartext := 'hello'
+               }
+
+               #
+               # Include the test file specified by the
+               # KEYWORD environment variable.
+               #
+               $INCLUDE ${keyword}/$ENV{KEYWORD}
+
+               if (&control.Password.Cleartext) {
+                       pap
+               }
+               else {
+                       accept
+               }
+       }
+
+       authenticate pap {
+               pap
+       }
+}
+
+server second {
+       namespace = radius
+
+       listen {
+               type = Access-Request
+       }
+
+       recv Access-Request {
+               update reply {
+                       &Reply-Message := "call second"
+               }
+
+               accept
+       }
+}
index 09c2c69c004c785d6284b07be26e506deec28c2b..df46040da080eb193a42f70627a5c2fc0a16d9fb 100644 (file)
@@ -153,49 +153,4 @@ instantiate {
        }
 }
 
-server default {
-       namespace = radius
-
-       listen {
-               type = Access-Request
-       }
-
-       recv Access-Request {
-               update control {
-                       &Password.Cleartext := 'hello'
-               }
-
-               #
-               # Include the test file specified by the
-               # KEYWORD environment variable.
-               #
-               $INCLUDE ${keyword}/$ENV{KEYWORD}
-
-               if (&control.Password.Cleartext) {
-                       pap
-               }
-               else {
-                       accept
-               }
-       }
-
-       authenticate pap {
-               pap
-       }
-}
-
-server second {
-       namespace = radius
-
-       listen {
-               type = Access-Request
-       }
-
-       recv Access-Request {
-               update reply {
-                       &Reply-Message := "call second"
-               }
-
-               accept
-       }
-}
+$INCLUDE ./$ENV{PROTOCOL}.conf