huntgroup as an unlang check?

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Mon Jul 20 11:46:14 CEST 2009


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



More information about the Freeradius-Users mailing list