Getting User Group in Default file

Muhammad Usman muhd.usman87 at gmail.com
Sun Dec 13 07:45:27 CET 2015


Hi,
I want to get the user group attribute  from database for a comparison in
default file, but currently I have {user-name} variable, how can I find the
user group (saved in radusergroup table) in the default file.
I want to compare the an attribute using unlang for decision making.
e.g.

If("*mysql query get attribute for user*" == daily)
{
Dailyresetcounter
}
If("*mysql query get attribute for user*" == never)
{
Neverresetcounter
}

Thanks


More information about the Freeradius-Users mailing list