SQL and Huntgroups

gregoire.leroy at retenodus.net gregoire.leroy at retenodus.net
Mon Apr 29 16:34:40 CEST 2013


Hello,

>> 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}
> 	}
> }

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.

Thanks,
Regards


More information about the Freeradius-Users mailing list