Alan DeKok escreveu:

Keith Yoder <[EMAIL PROTECTED]> wrote:


It seems as if Freeradius only recognizes the first Wk setting. The user can login from 7:30 - 8:30 but not from 15:30 - 18:30. Is this expected behaviour (only one time setting per day)? If not, how can I set up this limit?



It should work. If it doesn't, I would suggest going through the code with a debugger, to see what's going on.

 Alan DeKok.



Okay, I went digging through the code and found the solution. There are two operators, "," and "|", that can separate Day definitions. If I use a comma, Freeradius ignores the second day definition. Using a | everything works as expected. As a reminder:

Wk0730-0830,Wk1530-1830 --> only authenticates between 0730 and 0830 any day of the week.
Wk0730-0830|Wk1530-1830 --> authenticates between 0730 and 0830 and from 1530-1830 which is what I wanted :)


Maybe the /doc/README file should be updated to describe this behavior?

Keith Yoder

- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to