howto reset rlm_sqlcounter
N White
nwtech at tele-net.net
Fri Sep 23 00:38:59 CEST 2005
Bart van Daal wrote:
>Hi All,
>
>I'm authenticating users who can buy a specified amount of time to
>go online. I'm using the rlm_sqlcounter module with a reset=never
>option because there is no specified amount of time in which users
>have to use their minutes.
>A user can also buy additional minutes or when his minutes are depleted,
>a new subscription.
>
>two possible options I think of to reset the counter are:
>1. write a program to manipulate the gdbm file. Where is this file stored?
>2. keep adding the minutes to the allready existing value for the
>session-time.
>
>
>I was wondering if there was an 'easy' way to reset the counter for a user.
>
>thanks,
>kind regards,
>Bart van Daal
>
>
>
>Bart van Daal
>Network Operations
>
>Van Landeghemstraat 20
>9100 SINT-NIKLAAS
>b.vandaal at edpnet.net
>www.edpnet.be
>T +32 (0)3 265 67 00
>F +32 (0)3 265 67 01
>
>
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
>
>
I use this for hotspot customers - whenever their time runs out they
purchase more time via a webpage, and the page updates their
Max-All-Session in the SQL database(adds time).
--
---------------------------
| Nick White |
| Network Administrator |
| Tele-NET Internet |
| http://www.tele-net.net |
| nwtech at tele-net.net |
---------------------------
More information about the Freeradius-Users
mailing list