disappearing configuration items in unlang

Alan DeKok aland at deployingradius.com
Wed Jul 4 22:27:23 CEST 2007


Hugh Messenger wrote:
> It would be very nice, and very intuitive.  How hard would it be to just
> provide that one simple construct ("if <config item related condition> {}")
> during parsing of the startup config? 

  Extremely difficult, unfortunately.  The problem is that the config
assignments are static: "foo = bar".  The variable "foo" in a module
gets given value "bar".  Changing that to *dynamic* variables means that
every single assignment has to be wrapped with "process language stuff".

  That's hard.

> No need for the whole of unlang.
> More of an 'ifdef' style pre-processing directive than an integrated part of
> the language.

  It's much easier to integrate everything, honestly.

  Alan DeKok.



More information about the Freeradius-Users mailing list