Doh, read the FAQ properly Andrew!!

Andrew Tait
System Administrator
Country NetLink Pty, Ltd
E-Mail: [EMAIL PROTECTED]
WWW: http://www.cnl.com.au
30 Bank St Cobram, VIC 3644, Australia
Ph: +61 (03) 58 711 000
Fax: +61 (03) 58 711 874

"It's the smell! If there is such a thing." Agent Smith - The Matrix



5.9 How do I check the configuration before sending a HUP to the server?

Some administrators have automated scripts to update the radius servers
configuration files. The server can then be signalled via a HUP signal to
re-read the configuration files.

The problem with this approach is that any syntax errors in the
configuration
file may cause your main radius server to die! No one wants this to happen
so
there should be some process of checking the configuration files prior to
re-starting the server.

For versions prior to 1.6.4, you can use the following script:

 ftp://ftp.freeradius.org/pub/radius/contrib/check-radiusd-config.sh

With 1.6.4 and later, you can simply use

 radiusd -C

to check the configuration. It will print the status and exit with a zero
exit
status if everything is fine or with a non-zero exit status if errors were
found
in the configuration.

In the example script in the paragraph above this has already been used.


----- Original Message -----
From: "Andrew Tait" <[EMAIL PROTECTED]>
To: "FreeRadius" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 4:08 PM
Subject: Testing validity of users files.


> Hi All,
>
> We recently changed to FreeRadius from Cistron a few weeks ago for our
main
> authentication server.
>
> We have our main users file which is essentially static, and then several
> more files, (eg, users.chap) included which change constantly.
>
> With Cistron, if there was an error in the users.chap files, it would
simply
> ignore that entire file, and continues on. This way, only the users that
> dial our CHAP only dial-in server are effected (we mainly use PAP).
>
> FreeRadius however, just dies!!
>
> The latest Cistron also has an option to check that the users files are
> valid (I'm not sure of the command as we are still running the debian
stable
> package 1.6.1 (soon to be retired), but I know it exists).
>
> Is there anyway with freeradius that I can test that the users files are
> valid, before actually reload radius?
>
> Andrew Tait
> System Administrator
> Country NetLink Pty, Ltd
> E-Mail: [EMAIL PROTECTED]
> WWW: http://www.cnl.com.au
> 30 Bank St Cobram, VIC 3644, Australia
> Ph: +61 (03) 58 711 000
> Fax: +61 (03) 58 711 874
>
> "It's the smell! If there is such a thing." Agent Smith - The Matrix
>


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to