DEFAULT Acct-Status-Type == "Start"
Exec-Program = "/usr/local/bin/stopscript"
DEFAULT Acct-Status-Type == "Stop"
Exec-Program = "/usr/local/bin/startscript"
I get the impression that the above method may have been superceded
by doing such things via exec stanzas in radiusd.conf, but I wasn't
able to Google up any examples of that particular scenario that were
a close enough fit to
what I am trying to do.
You should have something like this in radiusd.conf: files { usersfile = ${confdir}/users acctusersfile = ${confdir}/acct_users compat = no }
And you also should have something like this in radiusd.conf:
preacct {
preprocess
acct_unique
# Read the 'acct_users' file
files
}Then the acct-users file will be processed and your scripts should be executed.
I have this in the acct-users file and that works for me:
DEFAULT Acct-Status-Type == Start
Exec-Program = "/opt/radhome/bin/acct.pl"
DEFAULT Acct-Status-Type == Alive
Exec-Program = "/opt/radhome/bin/acct.pl"
DEFAULT Acct-Status-Type == Stop
Exec-Program = "/opt/radhome/bin/acct.pl"
-- Regards,
Thor Spruyt E: [EMAIL PROTECTED] W: www.thor-spruyt.com M: +32 (0)475 67 22 65 Bestel nu uw exemplaar van Operationele verkoop (Walter Spruyt - Liesbeth Huysmans) via www.salesguide.be Ontdek de Telenet Hotspot service op www.telenet.be/hotspots
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

