using env in proxy.conf as the realm name

Alan DeKok aland at deployingradius.com
Mon Mar 25 01:28:50 UTC 2024


On Mar 22, 2024, at 7:20 AM, Andrei Katsuk <steep8 at gmail.com> wrote:
> 
> Hello,
> I tried to define realms in proxy.conf in following way:
> 
> realm $ENV{DOMAIN_NAME} {
> }
> 
> realm $ENV{NETBIOS_NAME} {
> }
> 
> but FreeRADIUS shows error during the start :
> etc/raddb/proxy.conf[7]: Parse error after "DOMAIN_NAME": unexpected token "}"
> 
> Does FreeRADIUS support environmental variables ?

  It supports them in places where they're documented to work.  They don't work for module names.

  Alan DeKok.



More information about the Freeradius-Users mailing list