SQL and Huntgroups

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Mon Apr 29 16:28:14 CEST 2013


Hi,

> The thing I want to be added by radius in the reply :
> if (Huntgroup-Name == 'one_huntgroup_name') {
>    Attribute1 op1 value1
>    Attribute2 op2 value2
>    ...
>    Attributei opi valuei
> }
> Given that Attribute,op,value 1...i are in the MySQL table.


> if (Huntgroup-Name == 'one_huntgroup_name') {
	update reply {
	attribute1 := "%{sql:SELECT blah blah}
	attribute2 := "%{sql:SELECT blah blah}
	attribute3 := "%{sql:SELECT blah blah}
	attribute4 := "%{sql:SELECT blah blah}
	}
}

alan


More information about the Freeradius-Users mailing list