Thanks Kirk for the response ... I was asking because I didn't know about Login-Time and that solves my problem ... But I didn't understanding your solution ... Checking for holidays would be nice ... but how would I implement that ? how would this script be called at the arrival of the request's packet ? Thanks again, ----- Original Message ----- From: kwallace@wallacecompany.com Sent: Thu, September 4, 2008 2:04 Subject:Re: Date and Time based authorization ??? 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 ----- End of original message -----