Re: kill user connection

2004-09-03 Thread Edgars
yes, Session-Timeout is good,but will it work if i'll will add it to the 
data base table in moment the user is already logged in? i think no 
because attributes are given to user only after authentication, isn't it so?
Maybe someone know how to send, for example, session-timeout=1s to user 
during his login? it will be fanastic good, you know:)

Edgars
Simon Bryden wrote:
There is a RADIUS disconnect mechanism which is not standardised as far as I 
know and not too widely supported. In most cases you need to use SNMP or 
other techniques to disconnect sessions. The most standardised way of 
disconnecting sessions is to use Session-Timeout attribute to tell the NAS 
when to terminate the session.

Regards,
Simon.
---
On Thursday 02 September 2004 14:57, Edgars wrote:
 

is there a way to do subj. from the freeradius - i'll use this when some
time is reached.
Edgars
-
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: kill user connection

2004-09-03 Thread Simon Bryden
It depends what you are trying to do. If you want a constant timeout then you 
can add it to the database as a reply attribute. If you need something 
dynamic, such as what you described in your other post, then you can use 
rlm_exec to calculate and return the timeout at authentication time.

Regards,
Simon.
---

On Friday 03 September 2004 08:24, Edgars wrote:
 yes, Session-Timeout is good,but will it work if i'll will add it to the
 data base table in moment the user is already logged in? i think no
 because attributes are given to user only after authentication, isn't it
 so? Maybe someone know how to send, for example, session-timeout=1s to user
 during his login? it will be fanastic good, you know:)

 Edgars

 Simon Bryden wrote:
 There is a RADIUS disconnect mechanism which is not standardised as far
  as I know and not too widely supported. In most cases you need to use
  SNMP or other techniques to disconnect sessions. The most standardised
  way of disconnecting sessions is to use Session-Timeout attribute to tell
  the NAS when to terminate the session.
 
 Regards,
 Simon.
 ---
 
 On Thursday 02 September 2004 14:57, Edgars wrote:
 is there a way to do subj. from the freeradius - i'll use this when some
 time is reached.
 
 Edgars
 
 -
 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: kill user connection

2004-09-03 Thread Edgars
i want such a thing - i have one additional field in radcheck table 
which is true/false. So i have one function which starts to work after 
user is authenticated for the first time. And if there is special 
timeout set for him (i.e. for example 1 hour) then starting from this 
moment his username is valid for one hour. So at this stop time i'm 
putting false in that file,but i am checking this file only at 
authentication, so i should somehow send to this user session-timeout=1s 
or some other way stop him for a while to make him authenticate again.

Thanks!
Edgars
Simon Bryden wrote:
It depends what you are trying to do. If you want a constant timeout then you 
can add it to the database as a reply attribute. If you need something 
dynamic, such as what you described in your other post, then you can use 
rlm_exec to calculate and return the timeout at authentication time.

Regards,
Simon.
---
On Friday 03 September 2004 08:24, Edgars wrote:
 

yes, Session-Timeout is good,but will it work if i'll will add it to the
data base table in moment the user is already logged in? i think no
because attributes are given to user only after authentication, isn't it
so? Maybe someone know how to send, for example, session-timeout=1s to user
during his login? it will be fanastic good, you know:)
Edgars
Simon Bryden wrote:
   

There is a RADIUS disconnect mechanism which is not standardised as far
as I know and not too widely supported. In most cases you need to use
SNMP or other techniques to disconnect sessions. The most standardised
way of disconnecting sessions is to use Session-Timeout attribute to tell
the NAS when to terminate the session.
Regards,
Simon.
---
On Thursday 02 September 2004 14:57, Edgars wrote:
 

is there a way to do subj. from the freeradius - i'll use this when some
time is reached.
Edgars
-
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: kill user connection

2004-09-03 Thread Troy Davis
http://freshmeat.net/projects/radkill/

Regards Troy
Comstech Systems
Ph: 1300 550 664
www.comstech.com
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 03, 2004 10:12 AM
Subject: Re: kill user connection


 Could you explain how to use snmp to disconnect a session, I been told you
need to
 use snmpwalk and do some configs on NAS to autentificate, also a  problem
is
 knowing what is the channel, ofcourse obtaining it by radius to send to
the NAS a line
 clear.

 I had tried to find a snmp scripts to do that specific function, without
luck, I
 understand I  need to understand better how snmp works, but taking a look
on a
 piece of code will help a lot.

 Armando Leal.



 On 3 Sep 2004 at 0:19, Simon Bryden wrote:

  There is a RADIUS disconnect mechanism which is not standardised as
far as I
  know and not too widely supported. In most cases you need to use SNMP or
  other techniques to disconnect sessions. The most standardised way of
  disconnecting sessions is to use Session-Timeout attribute to tell the
NAS
  when to terminate the session.
 
  Regards,
  Simon.
  ---
 
  On Thursday 02 September 2004 14:57, Edgars wrote:
   is there a way to do subj. from the freeradius - i'll use this when
some
   time is reached.
  
   Edgars
  
   -
   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: kill user connection

2004-09-03 Thread armando
On 3 Sep 2004 at 22:36, Troy Davis wrote:

 http://freshmeat.net/projects/radkill/
 
 Regards Troy
 Comstech Systems
 Ph: 1300 550 664
 www.comstech.com

This proggy is a simple Telnet, disconnect user and exit.. using expect, getting the 
actual online users from radwho.

* its not a snmp connection.. that might be faster and a better option.. 

But even tho is an option, tnx for your advise.

Armando Leal

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 10:12 AM
 Subject: Re: kill user connection
 
 
  Could you explain how to use snmp to disconnect a session, I been told you
 need to
  use snmpwalk and do some configs on NAS to autentificate, also a  problem
 is
  knowing what is the channel, ofcourse obtaining it by radius to send to
 the NAS a line
  clear.
 
  I had tried to find a snmp scripts to do that specific function, without
 luck, I
  understand I  need to understand better how snmp works, but taking a look
 on a
  piece of code will help a lot.
 
  Armando Leal.
 
 
 
  On 3 Sep 2004 at 0:19, Simon Bryden wrote:
 
   There is a RADIUS disconnect mechanism which is not standardised as
 far as I
   know and not too widely supported. In most cases you need to use SNMP or
   other techniques to disconnect sessions. The most standardised way of
   disconnecting sessions is to use Session-Timeout attribute to tell the
 NAS
   when to terminate the session.
  
   Regards,
   Simon.
   ---
  
   On Thursday 02 September 2004 14:57, Edgars wrote:
is there a way to do subj. from the freeradius - i'll use this when
 some
time is reached.
   
Edgars
   
-
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


kill user connection

2004-09-02 Thread Edgars
is there a way to do subj. from the freeradius - i'll use this when some 
time is reached.

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


Re: kill user connection

2004-09-02 Thread armando
Could you explain how to use snmp to disconnect a session, I been told you need to 
use snmpwalk and do some configs on NAS to autentificate, also a  problem is 
knowing what is the channel, ofcourse obtaining it by radius to send to the NAS a line 
clear.

I had tried to find a snmp scripts to do that specific function, without luck, I 
understand I  need to understand better how snmp works, but taking a look on a 
piece of code will help a lot.

Armando Leal.



On 3 Sep 2004 at 0:19, Simon Bryden wrote:

 There is a RADIUS disconnect mechanism which is not standardised as far as I 
 know and not too widely supported. In most cases you need to use SNMP or 
 other techniques to disconnect sessions. The most standardised way of 
 disconnecting sessions is to use Session-Timeout attribute to tell the NAS 
 when to terminate the session.
 
 Regards,
 Simon.
 ---
 
 On Thursday 02 September 2004 14:57, Edgars wrote:
  is there a way to do subj. from the freeradius - i'll use this when some
  time is reached.
 
  Edgars
 
  -
  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: kill user connection

2004-09-02 Thread Simon Bryden
There is a RADIUS disconnect mechanism which is not standardised as far as I 
know and not too widely supported. In most cases you need to use SNMP or 
other techniques to disconnect sessions. The most standardised way of 
disconnecting sessions is to use Session-Timeout attribute to tell the NAS 
when to terminate the session.

Regards,
Simon.
---

On Thursday 02 September 2004 14:57, Edgars wrote:
 is there a way to do subj. from the freeradius - i'll use this when some
 time is reached.

 Edgars

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


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