Date and Time based authorization ???

Kirk Wallace kwallace at wallacecompany.com
Thu Sep 4 08:04:19 CEST 2008


On Wed, 2008-09-03 at 23:47 -0500, Marcelo Freitas wrote:
> Hello,
> 
> I'm researching to switch my WISP authentication to a RADIUS style ...
> 
> I was reading the docs and found a solution for almost all my
> requirements ... besides one ...
> I have an access plan that is based on nights and weekends ... So on
> this plan I would just authorize based on this criteria ... I know
> that some variables comes with the request, like, date and time of the
> request (or I could even use the server's date and time) but I'd like
> to know if it's possible to check if it's a weekend with a function or
> something ...
> 
> I couldn't find it in the docs ...
> 
> Thanks in advance,
> 
> 
> Marcelo
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Hello, I'm new to this list, but would the date command help? Maybe from
a script, "date +%A" and then check for a return of "Saturday" or
"Sunday"? Are you going to need to check for holidays?

Kirk




More information about the Freeradius-Users mailing list