Re: Usage of Session-Timeout

2013-10-09 Thread Alan DeKok
Volker Lieder wrote:
> Within the old version, we used a database config for groups with an 
> attribute "Session-Timeout" and the value `%{expr:06:00}`

  Which never worked.  "06:00" isn't a number.  You can't just invent
syntax and use i.

> With new version freeradius send an error while looking in debug mode like:
> 
> Tue Oct  1 16:15:23 2013 : Info: [sql]expand: 06:00 -> 06:00
> Tue Oct  1 16:15:23 2013 : Info: [sql] Not a number at ":00"
> Tue Oct  1 16:15:23 2013 : Info: [sql]expand: %{expr:06:00} -> 
> 
> Can you explain why this value isnt working with new version or what we have 
> to change to set the Session-Timeout that user get disconnected e.g. at 06:00 
> am?

  It didn't work in the old version, either.  It just didn't complain.

  You should use the "Expiration" attribute:

bob Cleartext-Password := "hello", Expiration := "06:00"

  That should work.

  Or, calculate the Session-Timeout manually.

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


Usage of Session-Timeout

2013-10-08 Thread Volker Lieder
Hi,

we upgraded a freeradius setup from 1.x to 2.1.10+dfsg-2+squeeze1 on Debian 
Squeeze.

Within the old version, we used a database config for groups with an attribute 
"Session-Timeout" and the value `%{expr:06:00}`
With new version freeradius send an error while looking in debug mode like:

Tue Oct  1 16:15:23 2013 : Info: [sql]  expand: 06:00 -> 06:00
Tue Oct  1 16:15:23 2013 : Info: [sql] Not a number at ":00"
Tue Oct  1 16:15:23 2013 : Info: [sql]  expand: %{expr:06:00} -> 

Can you explain why this value isnt working with new version or what we have to 
change to set the Session-Timeout that user get disconnected e.g. at 06:00 am?

Regards,
Volker Lieder



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