Setting Reply Attributes Based on Time of Day?

Alan Buxey A.L.M.Buxey at lboro.ac.uk
Thu Feb 23 16:52:53 CET 2012


Hi,

> Is there a function within FR to schedule certain attributes to be
> returned in the Access-Accept reply?
> 
> Essentially we return a QoS VSA along with VLAN information on a
> successful auth, however between certain times of day there is more
> available bandwidth so to be kind to our users we'd like to return a
> different QoS level to during these bandwidth abundant periods.
> Does such a mechanism exist?


bit of unlang with some checks against internal variables....you can check
the hour of the day, for example...and then change the reply..

...hmm, are the variables valid there?

if ( %H > 20 ){
 'give them more bandwidth'
}



alan



More information about the Freeradius-Users mailing list