Getting User Group in Default file
Anirudh Malhotra
amalhotra.sp-dl at nkn.in
Sun Dec 13 17:44:35 CET 2015
Hey i would seriously advise you to learn some programming basics if not take help of people who know atleast basic sql queries this forum is not for this, believe me i have also asked these type of questions never got one reply for these type of questions.
You can study this for starters
http://wiki.freeradius.org/modules/Rlm_sql
BR,
Anirudh Malhotra
NKN
Sent from a handheld device, Sorry for typos.
> On 13-Dec-2015, at 12:15, Muhammad Usman <muhd.usman87 at gmail.com> wrote:
>
> 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
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list