how to check module return codes?

Alan DeKok aland at deployingradius.com
Mon Mar 31 11:43:05 CEST 2008


Papadopoulos Georgios wrote:
> I am a newbie with freeradius and I have a very newbie question. How do
> I check the return code of a module?

$ man unlang

> What I am trying to do is the
> following:
>  
> sql {
>     ok = 1
>     fail = 1
> }
> if (sql returned ok) {

  This should be "if (ok) {"

  It's documented in the "man" page.

  Alan DeKok.



More information about the Freeradius-Users mailing list