Re: Login-Time Attribute

2005-01-18 Thread Alan DeKok
Lara Adianto [EMAIL PROTECTED] wrote:

 Does it mean FreeRadius read the Login-Time attribute in users file,
 then calculate the time left based on current time and set the value
 in the session-timeout attribute ?

  Yes, that's what the text says.

 If that's the case what happens if the users file contains both
 login-time attribute and session-timeout attribute ?

  The smaller value is used.

 I read somewhere that login-time is an RFC defined attribute...which
 RFC defines it ? I can't find any info on the net

  It's not an RFC attribute.

  Alan DeKok.

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


Login-Time Attribute

2005-01-17 Thread Lara Adianto
Hi List,

How does FreeRadius handle Login-Time attribute...?
In the README ofFreeRadius, it's written:

 "Radiusd calculates the number of seconds left in the time span, and sets the Session-Timeout to that number of seconds. So if someones Login-Time is "Al0800-1800" and she logs in at 17:30, Session-Timeout is set to 1800 seconds so that she is kicked off at 18:00."
Does it mean FreeRadius read the Login-Time attribute in users file, then calculate the time left based on current time and set the value in the session-timeout attribute ? If that's the case what happens if the users file contains both login-time attribute and session-timeout attribute ?

I read somewhere that login-time is an RFC defined attribute...which RFC defines it ? I can't find any info on the net

Thanks for clearing my doubts,
Lara La vie, voyez-vous, ca n'est jamais si bon ni si mauvais qu'on croit- Guy de Maupassant -__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Login-Time attribute

2004-05-25 Thread Alan DeKok
Keith Yoder [EMAIL PROTECTED] wrote:
 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:

  Absolutely bizarre.

  Could you file this on bugs.freeradius.org?

  Alan DeKok.

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


Re: Login-Time attribute

2004-05-22 Thread Keith Yoder
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


Re: Login-Time attribute

2004-05-20 Thread Alan DeKok
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.



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


Login-Time attribute

2004-05-18 Thread Keith Yoder
Hello all,
I have a user that is allowed access from 7:30 - 8:30 and from 15:30 - 
18:30 on weekdays.  I have configured the Login-Time attribute like this:

Wk0730-0830,Wk1530-1830
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?

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