[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Conditional modules and dynamically attributes
From:       Viktor Kolesnikov <vvkolesnikoff () gmail ! com>
Date:       2019-09-13 10:29:00
Message-ID: CACKBAHFYZ+VpJEk5sbdYBkeEzSWp_bSAu0Pno_NeNh5x90a9=w () mail ! gmail ! com
[Download RAW message or body]

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@deployingradius.com>:
> 
> On Sep 11, 2019, at 6:49 PM, Viktor Kolesnikov <vvkolesnikoff@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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic