Using environment variables in post-auth of freeradius 2.1.x
Simon Meggle
Simon.Meggle at consol.de
Fri Aug 3 15:25:52 CEST 2018
Hello,
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 ?
Thanks,
Simon
More information about the Freeradius-Users
mailing list