Unlang/Perl

Alan DeKok aland at deployingradius.com
Sat Oct 18 16:53:26 CEST 2008


rsg wrote:
>  Alan  i've gone through it already.
> 
> $ man unlang
> 
> ..."If you need something more complicated than what is described
> here, we suggest using the Perl or Python modules rlm_perl, or
> rlm_python".....
> 
> However my question is related to calling Perl within unlang?

  The "perl" module is... a module.  The "man" page for "unlang" says
that you can list module names along with the "if", "else", etc.
commands.  See the third paragraph of the "man" page, and the following
text.

> I have an unlang script which does quite a number of checks.I need to
> another http check, thus wonder whether it would be possible to do it
> by calling Perl.

  The "man" page has examples of calling "chap" and "sql".  "perl" is
just another module.

  Alan DeKok.



More information about the Freeradius-Users mailing list