Re: Stale sessions problem

2006-02-25 Thread Georgi Alexandrov
Alan DeKok wrote: Georgi Alexandrov [EMAIL PROTECTED] wrote: If a user that somehow failed network connectivity and failed to tell the server account stop tries to reconnect back it won't let him because his previous session is stalled. I need a mechanism that will do a check upon connection if

Re: Stale sessions problem

2006-02-25 Thread Gerry Dalton
Kinda depends on what he is connected to. If you get a START record and a STOP record after the authentication from the device they are connected to you can check there. If you use sql for accounting, there will be a record created with a unique session id for the customer, and it will have

Re: Stale sessions problem

2006-02-25 Thread Alan DeKok
Georgi Alexandrov [EMAIL PROTECTED] wrote: how could one know from the database (radacct i suppose) if a user session i stalled or he's actually online? The SQL module is supposed to do this by calling checkrad. Have you listed sql in the session section? Alan DeKok. - List

Re: Stale sessions problem

2006-02-25 Thread Georgi Alexandrov
Alan DeKok wrote: Georgi Alexandrov [EMAIL PROTECTED] wrote: how could one know from the database (radacct i suppose) if a user session i stalled or he's actually online? The SQL module is supposed to do this by calling checkrad. Have you listed sql in the session section? Alan

Re: Stale sessions problem

2006-02-25 Thread Georgi Alexandrov
Gerry Dalton wrote: Kinda depends on what he is connected to. If you get a START record and a STOP record after the authentication from the device they are connected to you can check there. If you use sql for accounting, there will be a record created with a unique session id for the

Re: Stale sessions problem

2006-02-25 Thread Alan DeKok
Georgi Alexandrov [EMAIL PROTECTED] wrote: sql is listed in the session section, yes. Then it should clean up stale sessions when the user logs in the second time, if the first session doesn't exist on the NAS. IF... checkrad can talk to the NAS. If not, you have to clean them up by

Re: Stale sessions problem

2006-02-21 Thread Alan DeKok
Georgi Alexandrov [EMAIL PROTECTED] wrote: If a user that somehow failed network connectivity and failed to tell the server account stop tries to reconnect back it won't let him because his previous session is stalled. I need a mechanism that will do a check upon connection if the session is

Re: Stale sessions problem

2006-02-20 Thread Georgi Alexandrov
On 2/17/06, Georgi Alexandrov [EMAIL PROTECTED] wrote: Hello,I'm running freeradius 1.1.0 + mysql + dialupadmin on a linux 2.6 boxwith a pppoe-server runing on the same machine as nas.It works great ;-)But i have a problem with stalled sessions.I have set simultaneous use :=1. I have set sql in

Stale sessions problem

2006-02-17 Thread Georgi Alexandrov
Hello, I'm running freeradius 1.1.0 + mysql + dialupadmin on a linux 2.6 box with a pppoe-server runing on the same machine as nas. It works great ;-) But i have a problem with stalled sessions. I have set simultaneous use :=1. I have set sql in the session section in radiusd.conf. If a user