Multiple NAS
Alan DeKok
aland at deployingradius.com
Tue Aug 12 07:59:58 CEST 2008
Rana Dhekial wrote:
> How do I create conditional statement to uniquely identify differenent
> NAS vendors to use its sql.conf ? Is it something like
>
> if ( NAS-IP-Address = "cisco's IP address" )
> $INCLUDE ${confdir}/sql1.conf
No. The configurations are static. You cannot use unlang in the
"modules" section.
Instead, you should list the module in the "modules" section (or in
raddb/modules), and then refer to it in the authorize section.
if (NAS-IP-Address == 1.2.3.4) {
sq11
}
elsif (NAS-IP-Address == 2.3.4.5) {
sql2
}
Alan DeKok.
More information about the Freeradius-Users
mailing list