]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
convert to new listeners and sections
authorAlan T. DeKok <aland@freeradius.org>
Tue, 27 Jun 2017 19:19:52 +0000 (15:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 27 Jun 2017 19:19:52 +0000 (15:19 -0400)
src/tests/config/test.conf

index 3300be509a0205507ce651a227ba03734873059c..9d0bdf7fbdd6eebde217235563e5363e6233aff7 100644 (file)
@@ -59,6 +59,11 @@ modules {
        eap {
                default_eap_type = md5
 
+               type = md5
+               type = leap
+               type = gtc
+               type = mschapv2
+
                md5 {
                }
 
@@ -115,19 +120,26 @@ modules {
 #      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}"
        }
@@ -172,15 +184,37 @@ authorize {
        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
        }
@@ -188,4 +222,7 @@ accounting {
        ok
 }
 
+send Accounting-Response {
+}
+
 }