Exec-Program in acct_users file
Anton Borisov
antonio at mccinet.ru
Tue Dec 23 11:48:19 CET 2008
Thank you for your reply.
Yes, yes.
I have uncommented exec in post-auth section in
/etc/raddb/sites-enabled/default config.
So, another way in 2.1.1 - I've configured this program only with
accounting module.
Some examples:
/etc/raddb/sites-enabled/default
accounting {
...
...
Acct-Type BILL {
if ( Acct-Status-Type =~ /Start|Stop/ ) {
dns
}
}
...
cat /etc/raddb/modules/exec
...
...
exec dns {
wait = yes
program = "/path-to-my-programm.sh"
input_pairs = request
output_pairs = reply
}
This is working, but more quickly and easily only add Exec-Programm to
acct_users (like in 1.7.7 version)
Would you be so kind and give some examples for acct_usrs in 2.1.1?
Alan DeKok wrote:
> Anton Borisov wrote:
>> I used Start and Stop in accounting for some DNS registrations of my
>> clients, like this:
>>
>> ~# cat acct_users
>> ...
>> ...
>> DEFAULT Realm == 'dyndns', Acct-Status-Type == Start, Acct-Type
>> := BILL
> ...
>> and this works in 1.1.7 !
>>
>> But for 2.1.1 - this does not work.
>
> You need to list the "exec" module in the "post-auth" section.
>
> Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Yours faithfully,
Anton Borisov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3364 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20081223/b6c90f38/attachment.bin>
More information about the Freeradius-Users
mailing list