Using sql and userfile together

Alan Buxey A.L.M.Buxey at lboro.ac.uk
Mon Jan 23 21:16:21 CET 2012


Hi,
>    Hello all,
> 
>    I just wanted to ask how could I make FR to use either users file or sql
>    to send attributes based on the NAS ip address.
> 
>    I suspect that I would need to use ulang for that. Something like:
> 
>    if(NAS-IP-Address == NAS A IP) {
>         use sql
>    }
>    else
>    {
>        use users file
>    }
>    I'm just wondering what is the proper syntax of making FR use sql or user
>    file.

with default modules

    if("%{NAS-IP-Address}" == "192.168.100.1") {
         sql
    }
    else {
        files
    }


alan



More information about the Freeradius-Users mailing list