Scripts executing in acct_users file

Toure Mamadou mamadou.toure at vipnet.ci
Fri Jul 9 15:46:47 CEST 2010



You should make 
exec exe_module {
         wait = yes
         program = "/usr/local/etc/raddb/aaa_pdsn.sh"
         input_pairs = request
         output_pairs = reply
         shell_escape = yes
         output = none
}

Not

exe_module {
         wait = yes
         program = "/usr/local/etc/raddb/aaa_pdsn.sh"
         input_pairs = request
         output_pairs = reply
         shell_escape = yes
         output = none
}

Regards.
-----Message d'origine-----
De : freeradius-users-bounces+mamadou.toure=vipnet.ci at lists.freeradius.org [mailto:freeradius-users-bounces+mamadou.toure=vipnet.ci at lists.freeradius.org] De la part de Eugen Vakulenko
Envoyé : vendredi 9 juillet 2010 10:46
À : FreeRadius users mailing list
Objet : Re: Scripts executing in acct_users file

Hm, I've done it but now when I'm running radiusd -X it shows:

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.

After that I've tried also to create a file named exe_module in 
/raddb/modules with:

exe_module {
         wait = yes
         program = "/usr/local/etc/raddb/aaa_pdsn.sh"
         input_pairs = request
         output_pairs = reply
         shell_escape = yes
         output = none
}

but than radiusd -X shows:

Module: Checking accounting {...} for more modules to load
/usr/local/etc/raddb/modules/exec_module[1]: Failed to link to module 
'rlm_exe_module': file not found
/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.

09.07.2010 13:13, Toure Mamadou написав(ла):
> Hi,
> First: create an exec module in radiusd.conf
> For exemple :
> exec exe_module {
> 		wait = yes
> 		program = "path to your prograù"
> 		input_pairs = request
> 		output_pairs = reply
> 		shell_escape = yes
> 		output = none
> 		
> 	}
>
> Second: edit the site-available/default to add the module name to accounting
> section.
>
> accounting {
>        exe_module
> 	..........
> 	#
> 	#  Create a 'detail'ed log of the packets.
> 	#  Note that accounting requests which are proxied
> 	#  are also logged in the detail file.
> 	detail
> 	...........
> }
>
> Hoppe it'll helpe
> Regards.
>
> -----Message d'origine-----
> De : freeradius-users-bounces+mamadou.toure=vipnet.ci at lists.freeradius.org
> [mailto:freeradius-users-bounces+mamadou.toure=vipnet.ci at lists.freeradius.or
> g] De la part de Eugen Vakulenko
> Envoyé : vendredi 9 juillet 2010 08:53
> À : freeradius-users at lists.freeradius.org
> Objet : Scripts executing in acct_users file
>
> Hi all!
>
> I've just upgraded from 1.1.6 to 2.1.9. On the old server I'm used
> Start/Stop and Interim-Update in acct_users file to execute some script
> in this way:
>
> 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"
>
> But when I try it on the new server it seems it doesnt work.
> exec is enabled:
>
> Optimus# less /usr/local/etc/raddb/sites-enabled/default
> ...
> post-auth {
>
> #       main_pool
> #       reply_log
> #       sql
> #       sql_log
> #       ldap
>           exec
> #       wimax
>           Post-Auth-Type REJECT {
>                   attr_filter.access_reject
>           }
> }
>
> What is the best way to make it work?
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>    
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html





More information about the Freeradius-Users mailing list