[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: accounting_onoff_query with empty acctterminatecause
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2014-04-30 14:37:46
Message-ID: 53610ABA.3000008 () deployingradius ! com
[Download RAW message or body]

Lorenzo Milesi wrote:
> Hi.
> I was investigating my DB for some session being marked as terminated while still \
> active and I believe I found the culprit in the accounting_onoff_query query.

  I don't see why.  When the NAS sends a packet with Acct-Status-Type =
On or Acct-Status-Type = Off, it means that the NAS has rebooted.  And
therefore ALL user sessions on that NAS are no longer active.

  The RADIUS server is supposed to mark all of those user sessions as
terminated.

  If the NAS continues to keep a user session after it's sent an on/off
packet, then the NAS is broken.

> While this issue is probably related to NAS (Coova) configuration being \
> incompatible with the query itself (NAS-IP-Address is almost always the same), the \
> sessions terminated by this query all have a blank terminate cause.

  If the NAS doesn't send an Acct-Terminate-Cause, then FreeRADIUS can't
log one.  I suppose it could be set to NAS-Reboot... but that doesn't
make much difference.

> Is this expected?

  Is what expected?  You have at least two different questions there.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic