Huntgroups checking in MySQL radgroupcheck

Marco Marzetti marco at lamehost.it
Wed Jun 5 17:34:23 CEST 2013


Il giorno mer, 05/06/2013 alle 09.14 -0400, Alan DeKok ha scritto:

> Marco Marzetti wrote:
> > mysql> SELECT * FROM radgroupcheck;
> > +----+-----------+----------------+----+----------+
> > | id | groupname | attribute      | op | value    |
> > +----+-----------+----------------+----+----------+
> > |  1 | TECNICI   | Huntgroup-Name | == | APPARATI |
> > +----+-----------+----------------+----+----------+
> 
>   Read doc/rlm_sql.  Or "man unlang".  The operators are the same.
> 
>   You want ":=", not "==".
> 
>   Alan DeKok.



Hello,

Sorry, what do you mean with "The operators are the same" ?
I put "==" because /etc/freeradius/users use that one
root at tango:~# grep Huntgroup-Name /etc/freeradius/users 
#swilson	Service-Type == Framed-User, Huntgroup-Name == "alphen"
#DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "alphen"
#DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "delft

And because "==" works in radcheck while ":=" doesn't.

Also, if i understand it correctly, it makes sense to me since "==" is a
filtering 
operator while ":=" add the attribute to the list for further checking 

Anyway, i've updated the record above and putting ":=" and it doesn't
work.

Is there anything else wrong?

Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130605/b50750b9/attachment.html>


More information about the Freeradius-Users mailing list