Hello Stephen -
On Tue, 11 Apr 2000, Stephen Chen wrote:
>
> Is there a way for Radiator accounting to write to a database field ONCE
> when the user is authenticated for the first time? We need to do this so we
> know when the customer is actually up for the first time for billing
> purposes.
>
The initial Accounting Start is the only true indication of a successful
connection. Just because an authentication was successful does not mean that a
connection was actually established, as there can be problems with modems or
PPP itself falling over before the connection comes up.
Many of our customers actually just use the Accounting Stop records (which
contain session duration - Acct-Session-Time) for their accounting, as it is
impossible to reconcile all Accounting Starts to Accounting Stops in any case.
All of that said, if you really want to do what you describe, you will have to
write a PostAuthHook to implement the database update. There are some example
hooks in the Radiator 2.15 patches area that you can use as a starting point.
regards
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.