Conditional modules and dynamically attributes

Viktor Kolesnikov vvkolesnikoff at gmail.com
Fri Sep 13 12:29:00 CEST 2019


Thanks for the tip, Alan.
I spent some time of testing, and $-INCLUDE works fine in this case.
Including custom configurations to the main virtual server is a very
useful tool.

чт, 12 сент. 2019 г. в 02:24, Alan DeKok <aland at deployingradius.com>:
>
> On Sep 11, 2019, at 6:49 PM, Viktor Kolesnikov <vvkolesnikoff at gmail.com> wrote:
> > I expected this attribute to be ignored if the module is not loaded, the
> > condition will not be met or will be skipped and the check will return a
> > reject.
>
>   The documentation doesn't say that happens.
>
> > I am trying to create a configuration of virtual server with many access
> > checks combining different modules and i think that enabling/disabling
> > modules by creating a link is easier than editing configuration file in
> > many places.
>
>   You can include pieces via $INCLUDE.  There's even a $-INCLUDE which includes files only if they exist.
>
> > Maybe checking the condition that the module was loaded would be useful
> > here, but I have not found a way to do this checking using unlang, and I
> > think that it does not exist.
>
>   See $-INCLUDE.  This is documented in "man unlang"
>
>   Alan DeKok.
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



-- 
Viktor



More information about the Freeradius-Users mailing list