Scripts executing in acct_users file
Eugen Vakulenko
eugen at vakulenko.pp.ua
Fri Jul 9 14:54:18 CEST 2010
09.07.2010 15:03, Alan DeKok написав(ла):
> Does the debug output show that it's loading the file containing the
> module configuration?
>
I don't know exactly. As I understand it shows that it is loading
additional modules. End of debug output:
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to helpdesk at localhost:/radiuspdsn
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating acct_unique
acct_unique {
key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port"
}
Module: Checking accounting {...} for more modules to load
/usr/local/etc/raddb/sites-enabled/default[325]: Failed to load module
"exe_module".
/usr/local/etc/raddb/sites-enabled/default[323]: Errors parsing
accounting section.
> Where did you put the configuration?
>
I've added in /usr/local/etc/raddb/radiusd.conf following section near
the end of file:
...................................
exec exe_module {
wait = yes
program = "/usr/local/etc/raddb/aaa_pdsn.sh"
input_pairs = request
output_pairs = reply
shell_escape = yes
output = none
}
$INCLUDE policy.conf
$INCLUDE sites-enabled/
#### End of radiusd.conf #####
And than added this to the /usr/local/etc/raddb/sites-enabled/default ,
"accounting" section
accounting {
exe_module
detail
# daily
unix
radutmp
# sradutmp
# main_pool
# sql
# sql_log
# pgsql-voip
attr_filter.accounting_response
}
My "acct_users" file:
DEFAULT Acct-Status-Type == Start
Exec-Program = "/usr/local/etc/raddb/aaa_pdsn.sh"
DEFAULT Acct-Status-Type == Interim-Update
Exec-Program = "/usr/local/etc/raddb/aaa_pdsn.sh"
DEFAULT Acct-Status-Type == Stop
Exec-Program = "/usr/local/etc/raddb/aaa_pdsn.sh"
More information about the Freeradius-Users
mailing list