How do I tell if accounting module fails?
Alex French
alex at evilal.com
Thu Oct 30 22:17:31 CET 2008
Hi,
Just for the record, I found another way to do this in 1.1.7, using
rlm_perl. Posting here for the archives.
I rewrote my exec script as an rlm_perl module. Then, when "perl" is
invoked after "sql" in the accounting config section, the perl module
only gets fired if the sql module succeeds. So that solves my problem
for free (also, it got me to move my code into a perl module, which I
suspect is much more efficient).
Thanks,
Alex
2008/10/8 Alex French <alexfrench at gmail.com>:
> Hi all,
>
> I'm using an Exec-Program to do some user-specific stuff when a user
> logs out of our network (i.e. it is invoked with "DEFAULT
> Acct-Status-Type == Stop").
>
> I'm trying to find a way for it to detect whether the database
> accounting module has succeedded in updating the user's accounting
> record or not (it will fail if the STOP packet is a duplicate). I
> can't find an attribute that I can test to check the status of the
> request at that stage. Any suggestions?
>
> Alex
>
More information about the Freeradius-Users
mailing list