Re: Date and Time based authorization ???
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 -----
On Thu, 2008-09-04 at 01:35 -0500, Marcelo Freitas wrote:
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,
I've used "date" in some of my scripts to deal with time related issues. The more I think about it, using a script to change radius' behavior might be a kluge at best. Working within radius, as Alan's suggestion does, is the way to go. My comments here will be more for me to explore what I don't know, so take whatever I say with a grain of salt. In a general sense, what sorts of things do you want to do? Do you want to keep people from logging in at certain times, change only billing rates or limit traffic rates? I mainly used Radius to monitor the amount of traffic from each user because I am thinking about going to metered accounts, but I think radius is mainly a means to manage logins. I am guessing it may not be the most appropriate thing for much else. I'm looking forward to comments that shed light on the best uses for radius. Kirk
I mainly used Radius to monitor the amount of traffic from each user because I am thinking about going to metered accounts, but I think radius is mainly a means to manage logins. I am guessing it may not be the most appropriate thing for much else.
Guess again! "Remote Authentication Dial In User Service (RADIUS) is a networking protocol that provides centralized access, authorization and *accounting* management for people or computers to connect and use a network service." Ivan Kalik Kalik Informatika ISP
participants (3)
-
Kirk Wallace -
Marcelo Freitas -
tnt@kalik.net