SQL and Huntgroups

Grégoire Leroy gregoire.leroy at retenodus.net
Mon Apr 29 23:31:03 CEST 2013


Le Monday 29 April 2013 20:30:15, A.L.M.Buxey at lboro.ac.uk a écrit :
> Hi,
> > The thing is, I don't know how many attributes I have. It could be
> > 1, 4, 10 and not always the same. That's why I want to retrieve from
> > the database the value, the op and the attribute.
> ???? just use authorize_group_reply_query  and the "groupreply_table =
> "radgroupreply"" part of sql.conf ?

Maybe I was not clear enough above.

What I want is :
1) Set the password for the user
2) Authentication of the user
3) X is always added to the reply if the user is authenticated
4) Moreover, Y is added to the reply for NAS, still if the user is authenticated

I use radreply for X, the issue here is step 4. The how-to on the wiki about huntgroups and SQL 
recommends to use unlang in the authorize section. So, I update the request to assign the Huntgroup-
Name attribute, and use unlang to add the Y configuration (user dependent) if the huntgroupname is 

That's why I maintain a seperate table, for Y configuration, and I would like to be able to 
dynamically update my request with the attributes,op,values of the user.

Is it possible ?

If not, I could just put my X+Y configuration in radreply and using unlang, delete Y if the request 
is not from the right NAS. But I don't like add something to delete it after, if possible.

Thank you for your help,
Grégoire Leroy

More information about the Freeradius-Users mailing list