Re: session-timeout for disconnect at fixed time

2008-04-16 Thread javkhlanbaatar
I've tried but it doesn't work.
also i've tried to put this expression into modules section under expr{}.
Then i've added expr to the authorize section. But in authorize section,
there mustn't be any expressions. :(
Please help

What should be instead of ?.  I want to enter result of the expressions
like `%{expr: ((%l + 86399) %% 86400) - %l}`.
How can I make it?


 Try just:

 ((%l + 86399) %% 86400) - %l



Also, in the debug mode, how can I shorten debugs. I mean, I want to get
only access-accept, access-reject, access-request packets, not any others
(like entering sql, expanding user etc.,).
Help please


 -x will produce shortest debug, -xx longer, -xxx even more, etc. What you
 are asking for is not debug but radtest output.

 Ivan Kalik
 Kalik Informatika ISP

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



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


Re: session-timeout for disconnect at fixed time

2008-04-16 Thread Ivan Kalik
What doesn't work? Your expression? I don't recongnize %% operator (but
I don't use C). Or placing it's value in Session-Timeout?

Ivan Kalik
Kalik Informatika ISP


Dana 16/4/2008, [EMAIL PROTECTED]
[EMAIL PROTECTED] piše:

I've tried but it doesn't work.
also i've tried to put this expression into modules section under expr{}.
Then i've added expr to the authorize section. But in authorize section,
there mustn't be any expressions. :(
Please help

What should be instead of ?.  I want to enter result of the expressions
like `%{expr: ((%l + 86399) %% 86400) - %l}`.
How can I make it?


 Try just:

 ((%l + 86399) %% 86400) - %l



Also, in the debug mode, how can I shorten debugs. I mean, I want to get
only access-accept, access-reject, access-request packets, not any others
(like entering sql, expanding user etc.,).
Help please


 -x will produce shortest debug, -xx longer, -xxx even more, etc. What you
 are asking for is not debug but radtest output.

 Ivan Kalik
 Kalik Informatika ISP

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



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



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


Re: session-timeout for disconnect at fixed time

2008-04-07 Thread Ivan Kalik
What should be instead of ?.  I want to enter result of the expressions
like `%{expr: ((%l + 86399) %% 86400) - %l}`.
How can I make it?


Try just:

((%l + 86399) %% 86400) - %l



Also, in the debug mode, how can I shorten debugs. I mean, I want to get
only access-accept, access-reject, access-request packets, not any others
(like entering sql, expanding user etc.,).
Help please


-x will produce shortest debug, -xx longer, -xxx even more, etc. What you
are asking for is not debug but radtest output.

Ivan Kalik
Kalik Informatika ISP

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


Re: session-timeout for disconnect at fixed time

2008-04-06 Thread javkhlanbaatar

It is all same. It didn't return SessionTimeout.
my radgroupreply table:

id GroupnameAttributeValue   op
1  static   Session-Timeout   := ?


What should be instead of ?.  I want to enter result of the expressions
like `%{expr: ((%l + 86399) %% 86400) - %l}`.
How can I make it?



Also, in the debug mode, how can I shorten debugs. I mean, I want to get
only access-accept, access-reject, access-request packets, not any others
(like entering sql, expanding user etc.,).
Help please




 Sorry, I didn't notice that Session-Timeout is on the same line as the
 Group. It shouldn't be there but as one of the reply lines.

 Ivan Kalik
 Kalik Informatika ISP


 Dana 3/4/2008, [EMAIL PROTECTED]
 [EMAIL PROTECTED] pi¹e:


The result is still same. It doesn't return Session-Timeout.
How would be the Value field in radgroupreply, if I tried to use mysql
table instead of users file.


 Try SQL-Group == static in user file entry. You are not using Unix
 groups.

 Ivan Kalik
 Kalik Informatika ISP


 Dana 2/4/2008, [EMAIL PROTECTED]
 [EMAIL PROTECTED] pi¹e:

hi,

i want to disconnect user at midnight. So I've read the April 2004's
 forum
and found some solutions. But there isn't anything about where to put
Session-Timeout attribute. I've tried to put into users file.

DEFAULT Group := 'static', Session-Timeout := `%{expr: ((%l + 86399) %%
86400) - %l}`
Service-Type == Framed-User ...

It didn't return Session-Timeout. But when I remove Group section from
users file then it returns Session-Timeout.

Also I've tried to put this into expr section in the radiusd.conf. Then
put expr into authorize section. But it says authorize section couldn't
read expr.

How can I do this?

I want to put this attribute into mysql radgroupreply table. What
 should
 I
enter in the Value field?

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



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



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



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



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


Re: session-timeout for disconnect at fixed time

2008-04-03 Thread Ivan Kalik
Sorry, I didn't notice that Session-Timeout is on the same line as the
Group. It shouldn't be there but as one of the reply lines.

Ivan Kalik
Kalik Informatika ISP


Dana 3/4/2008, [EMAIL PROTECTED]
[EMAIL PROTECTED] piše:


The result is still same. It doesn't return Session-Timeout.
How would be the Value field in radgroupreply, if I tried to use mysql
table instead of users file.


 Try SQL-Group == static in user file entry. You are not using Unix
 groups.

 Ivan Kalik
 Kalik Informatika ISP


 Dana 2/4/2008, [EMAIL PROTECTED]
 [EMAIL PROTECTED] piše:

hi,

i want to disconnect user at midnight. So I've read the April 2004's
 forum
and found some solutions. But there isn't anything about where to put
Session-Timeout attribute. I've tried to put into users file.

DEFAULT Group := 'static', Session-Timeout := `%{expr: ((%l + 86399) %%
86400) - %l}`
Service-Type == Framed-User ...

It didn't return Session-Timeout. But when I remove Group section from
users file then it returns Session-Timeout.

Also I've tried to put this into expr section in the radiusd.conf. Then
put expr into authorize section. But it says authorize section couldn't
read expr.

How can I do this?

I want to put this attribute into mysql radgroupreply table. What should
 I
enter in the Value field?

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



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



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



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


session-timeout for disconnect at fixed time

2008-04-02 Thread javkhlanbaatar
hi,

i want to disconnect user at midnight. So I've read the April 2004's forum
and found some solutions. But there isn't anything about where to put
Session-Timeout attribute. I've tried to put into users file.

DEFAULT Group := 'static', Session-Timeout := `%{expr: ((%l + 86399) %%
86400) - %l}`
Service-Type == Framed-User ...

It didn't return Session-Timeout. But when I remove Group section from
users file then it returns Session-Timeout.

Also I've tried to put this into expr section in the radiusd.conf. Then
put expr into authorize section. But it says authorize section couldn't
read expr.

How can I do this?

I want to put this attribute into mysql radgroupreply table. What should I
enter in the Value field?

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


Re: session-timeout for disconnect at fixed time

2008-04-02 Thread Ivan Kalik
Try SQL-Group == static in user file entry. You are not using Unix
groups.

Ivan Kalik
Kalik Informatika ISP


Dana 2/4/2008, [EMAIL PROTECTED]
[EMAIL PROTECTED] piše:

hi,

i want to disconnect user at midnight. So I've read the April 2004's forum
and found some solutions. But there isn't anything about where to put
Session-Timeout attribute. I've tried to put into users file.

DEFAULT Group := 'static', Session-Timeout := `%{expr: ((%l + 86399) %%
86400) - %l}`
Service-Type == Framed-User ...

It didn't return Session-Timeout. But when I remove Group section from
users file then it returns Session-Timeout.

Also I've tried to put this into expr section in the radiusd.conf. Then
put expr into authorize section. But it says authorize section couldn't
read expr.

How can I do this?

I want to put this attribute into mysql radgroupreply table. What should I
enter in the Value field?

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



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


Re: session-timeout for disconnect at fixed time

2008-04-02 Thread javkhlanbaatar

The result is still same. It doesn't return Session-Timeout.
How would be the Value field in radgroupreply, if I tried to use mysql
table instead of users file.


 Try SQL-Group == static in user file entry. You are not using Unix
 groups.

 Ivan Kalik
 Kalik Informatika ISP


 Dana 2/4/2008, [EMAIL PROTECTED]
 [EMAIL PROTECTED] pi¹e:

hi,

i want to disconnect user at midnight. So I've read the April 2004's
 forum
and found some solutions. But there isn't anything about where to put
Session-Timeout attribute. I've tried to put into users file.

DEFAULT Group := 'static', Session-Timeout := `%{expr: ((%l + 86399) %%
86400) - %l}`
Service-Type == Framed-User ...

It didn't return Session-Timeout. But when I remove Group section from
users file then it returns Session-Timeout.

Also I've tried to put this into expr section in the radiusd.conf. Then
put expr into authorize section. But it says authorize section couldn't
read expr.

How can I do this?

I want to put this attribute into mysql radgroupreply table. What should
 I
enter in the Value field?

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



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



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