From: Arran Cudbard-Bell Date: Mon, 13 May 2024 20:29:37 +0000 (-0600) Subject: Make the default radclient tests run with dynamic clients X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3a9042afdeb76bc434c2f6331db76e9df62a5c;p=thirdparty%2Ffreeradius-server.git Make the default radclient tests run with dynamic clients --- diff --git a/src/tests/radclient/config/radiusd.conf b/src/tests/radclient/config/radiusd.conf index b1084a687a1..81d0cf506ad 100644 --- a/src/tests/radclient/config/radiusd.conf +++ b/src/tests/radclient/config/radiusd.conf @@ -38,11 +38,6 @@ policy { $INCLUDE ${maindir}/policy.d/ } -client localhost { - ipaddr = 127.0.0.1 - secret = testing123 -} - modules { always reject { rcode = reject @@ -97,13 +92,44 @@ server test { listen { type = Access-Request type = Accounting-Request - transport = udp - udp { - ipaddr = 127.0.0.1 - port = ${test_port} - } - } + udp { + ipaddr = * + port = ${test_port} + dynamic_clients = true + networks { + allow = 0.0.0.0/0 + } + } + transport = udp + + # + # Dynamic client section + # + limit { + max_clients = 0 + max_connections = 0 + idle_timeout = 600.0 + nak_lifetime = 10.0 + cleanup_delay = 5.0 + } + } + + new client { + &control.FreeRADIUS-Client-IP-Address := 127.0.0.1 + &control.FreeRADIUS-Client-Secret := 'testing123' + &control.FreeRADIUS-Client-Shortname := 'test-client' + &control.FreeRADIUS-Client-NAS-Type := 'test' + ok + } + + add client { + ok + } + + deny client { + ok + } recv Access-Request { # @@ -125,7 +151,7 @@ server test { accept return - } + } if (&User-Name == "bob") { accept