module return codes

Alan DeKok aland at deployingradius.com
Fri Nov 14 15:26:43 CET 2014


Travis Dimmig wrote:
> I can’t figure out how to get modules to return with the codes I want
> them too.

  Modules such as "sql" have fixed return codes.  Policies are a bit
different.

> When execution enters the final “else” with the noop, why does the
> module still return “ok” ?

  Because "ok" has a higher priority than "noop".

  You shouldn't by relying on *module* return codes from *policies*.
"Unlang" isn't a programming language.

  Instead, put the results of the policies into an attribute, and check
the attribute.

  Alan DeKok.


More information about the Freeradius-Users mailing list