Using environment variables in post-auth of freeradius 2.1.x

Alan DeKok aland at deployingradius.com
Fri Aug 3 15:31:18 CEST 2018


On Aug 3, 2018, at 9:25 AM, Simon Meggle <Simon.Meggle at consol.de> wrote:
> I have the situation that the post-auth section of FREERADIUS 2.1.12 should differ in a few lines on the test and prod system. 
> In version 3 I can make use of environment variables: 
> 
> post-auth {
>    ...
>    ...
>        elsif ( "$ENV{HOSTNAME}" == "stest-sr-h00") {
>        # DEV-replies
>        elsif ( "$ENV{HOSTNAME}" == "sprod-sr-h01" || "$ENV{HOSTNAME}" == "sprod-sr-h02") {
>        # PROD-replies
>        fi
> 
> Is there any chance to smuggle environment variables like $HOSTNAME into freeradius 2.x ?

  We're not going to add features to v2, sorry.  It's enough work trying to maintain v3 and develop v4 at the same time.

  Alan DeKok.





More information about the Freeradius-Users mailing list