Date and Time based authorization ???
Alan DeKok
aland at deployingradius.com
Thu Sep 4 07:56:35 CEST 2008
Marcelo Freitas wrote:
> 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 ...
doc/README:
Login-Time string Defines when user may login.
Login-Time defines the time span a user may login to the system. The
format of a so-called time string is like the format used by UUCP.
A time string may be a list of simple time strings separated by "|" or
",".
Each simple time string must begin with a day definition. That can be just
one day, multiple days, or a range of days separated by a hyphen. A
day is Mo, Tu, We, Th, Fr, Sa or Su, or Wk for Mo-Fr. "Any" or "Al"
means all days.
More information about the Freeradius-Users
mailing list