Hi all, Im testing a new conf. using Login-Time. It works fine until I try to define 2 timespans for a day. For example if I define a new user, called "test" with this radcheck data: mysql> select * from radcheck where UserName='test'\G *************************** 1. row *************************** id: 320 UserName: test Attribute: Login-Time op: := Value: Mo0001-0940,Mo0952-2359 1 row in set (0.00 sec) I can login ok between the first timespan (00:01 to 09:40), but it's impossible during the second one (09:52 to 23:59). Maybe there is someting incorrect in the time string. Any help? All the best! Joseba
Yes, the string is "wrong". You don't need two entries for one day. If you want people to login before 9:40 and after 9:52 it goes like this: Mo0952-0940 Not very logical. Regards Ivan Kalik Kalik Informatika ISP Dana 5/3/2007, "Joseba Beltrán" <joseba.beltran@gmail.com> piše:
Hi all,
Im testing a new conf. using Login-Time. It works fine until I try to define 2 timespans for a day. For example if I define a new user, called "test" with this radcheck data:
mysql> select * from radcheck where UserName='test'\G *************************** 1. row *************************** id: 320 UserName: test Attribute: Login-Time op: := Value: Mo0001-0940,Mo0952-2359 1 row in set (0.00 sec)
I can login ok between the first timespan (00:01 to 09:40), but it's impossible during the second one (09:52 to 23:59).
Maybe there is someting incorrect in the time string. Any help?
All the best!
Joseba - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Yes, I know, but I need you timespans each day (from 00:00 to 13:00 and 16:00 to 22:00 for example) Best Regards, Joseba Beltrán
Yes, the string is "wrong". You don't need two entries for one day.
If you want people to login before 9:40 and after 9:52 it goes like this:
Mo0952-0940
Not very logical.
Regards
Ivan Kalik Kalik Informatika ISP
Dana 5/3/2007, "Joseba Beltrán" <joseba.beltran@gmail.com> piše:
Hi all,
Im testing a new conf. using Login-Time. It works fine until I try to define 2 timespans for a day. For example if I define a new user, called "test" with this radcheck data:
mysql> select * from radcheck where UserName='test'\G *************************** 1. row *************************** id: 320 UserName: test Attribute: Login-Time op: := Value: Mo0001-0940,Mo0952-2359 1 row in set (0.00 sec)
I can login ok between the first timespan (00:01 to 09:40), but it's impossible during the second one (09:52 to 23:59).
Maybe there is someting incorrect in the time string. Any help?
All the best!
Joseba - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
You can't define two timespans in same day (at least I don't think that can be done). Use huntgroups: period1 Login-Time ... Group == this, Group == that, Group == another period2 Login-Time ... Group == this period 3 ... etc. Ivan Kalik Kalik Informatika ISP Dana 5/3/2007, "Joseba Beltrán" <joseba.beltran@gmail.com> piše:
Yes, I know, but I need you timespans each day (from 00:00 to 13:00 and 16:00 to 22:00 for example)
Best Regards,
Joseba Beltrán
Yes, the string is "wrong". You don't need two entries for one day.
If you want people to login before 9:40 and after 9:52 it goes like this:
Mo0952-0940
Not very logical.
Regards
Ivan Kalik Kalik Informatika ISP
Dana 5/3/2007, "Joseba Beltrán" <joseba.beltran@gmail.com> piše:
Hi all,
Im testing a new conf. using Login-Time. It works fine until I try to define 2 timespans for a day. For example if I define a new user, called "test" with this radcheck data:
mysql> select * from radcheck where UserName='test'\G *************************** 1. row *************************** id: 320 UserName: test Attribute: Login-Time op: := Value: Mo0001-0940,Mo0952-2359 1 row in set (0.00 sec)
I can login ok between the first timespan (00:01 to 09:40), but it's impossible during the second one (09:52 to 23:59).
Maybe there is someting incorrect in the time string. Any help?
All the best!
Joseba - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/usershtml
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Joseba Beltrán -
tnt@kalik.co.yu