We are looking to use Login-Time, but I have a few questions about
timezones.
Our servers run on GMT, but I would want to setup Login-Times for people in
different timezones.
So for example if I wanted to limit logintimes to only Monday, If I said
"Mo00:00-23:49" this would be in GMT time. If I wanted to do this for EST
time I guess it would be something like "Su19:00-23:59,Mon00:00-19:00".
This can get pretty ugly. The Wk wouldn't work any more, I guess instead of
"Wk00:00-23:59" it would be "Su19:00-23:59,Mo00:00-23:59 ......
Fr00:00-19:00"
Is there a maximum to how long this string can be?
It would be nice to instead of doing it this way, to do something like
"Mo-05:00-19:00" or "Wk05:00-29:00" In other words just add the timezone
to the hours you want, and allow negative hours and hours greater then 24.
I don't think the current code will support this:
/* Treat 2400 as 0000, and do some more silent error checks. */
if (end < 0) end = 0;
if (start < 0) start = 0;
if (end >= DAYMIN) end = DAYMIN - 1;
if (start >= DAYMIN) start = DAYMIN - 1;
I'm not much of a C programmer, but I guess I could give it a shot. Does
this sound like something doable?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html