SqlCounter reload after initial authentication

Alan DeKok aland at deployingradius.com
Thu Aug 12 10:35:46 CEST 2010


tadiguy at verizon.net wrote:
> I'm using Freeradius + Chillispot+MySql for hotspot. Sqlcounter noresetcounter works fine for prepaid access time, however the counter is loaded only once when the user first authenticate.
> This means that even if Max-All-Session changes after initial logon (as it happens when the user adds more credit) the user is session is still terminated at the end of the initial count down.
> How can I force Freeradius sqlcounter to re-load and begin counting down when Max-All-Session is updated after initial authentication? If this is not possible any workaround or hacks to accomplish this behaviour will be greatly appreciated. 

  You can't.  The SQL counter module returns a Session-Timeout attribute
to the NAS, and the *NAS* is the one enforcing the session length.  If
you update the database, the NAS doesn't know this, and still enforces
the session length.

  Read the NAS documentation to see how it can extend existing sessions.
 If the documentation doesn't describe how to do it, it's impossible.

  And it's *not* a FreeRADIUS issue.

  Alan DeKok.



More information about the Freeradius-Users mailing list