huntgroup as an unlang check?
hi, i've got a few virtual hosts that do checks on the NAS-IP-Address - all works fine - but those lists of NAS are now growing so in order to maintain sanity I thought 'heck, lets use a Huntgroup' however, I recall hu8ntgroups being very much tied to users and wasnt sure of their status in unlang. if i have raddb/hntgroups alphen NAS-IP-Address == 192.168.2.5 alphen NAS-IP-Address == 192.168.2.6 alphen NAS-IP-Address == 192.168.2.7 and, in the virtual host i have if("%{HuntGroup}" == "alphen"){ sql ok = return } would this work as expected with unlang and this variable? ie would the SQL only be hit if the NAS was 192.168.2.5, 192.168.2.6 or 192.168.2.7 - which in theory it looks like? alan
hi,
i've got a few virtual hosts that do checks on the NAS-IP-Address - all works fine - but those lists of NAS are now growing so in order to maintain sanity I thought 'heck, lets use a Huntgroup'
however, I recall hu8ntgroups being very much tied to users and wasnt sure of their status in unlang.
With unlang you can use sql for hungroups as well. http://wiki.freeradius.org/SQL_Huntgroup_HOWTO
if i have
raddb/hntgroups
alphen NAS-IP-Address == 192.168.2.5 alphen NAS-IP-Address == 192.168.2.6 alphen NAS-IP-Address == 192.168.2.7
and, in the virtual host i have
if("%{HuntGroup}" == "alphen"){
It's Huntgroup-Name. And should be on request list.
sql ok = return }
Ivan Kalik Kalik Informatika ISP
participants (2)
-
A.L.M.Buxey@lboro.ac.uk -
Ivan Kalik