execute programme when receiving account packet

Toure Mamadou mamadou.toure at vipnet.ci
Tue May 25 18:38:30 CEST 2010


Hi i've try
exec {
		wait = yes
		program = "/bin/sh /opt/mytest %{User-Name}"
		input_pairs = request
		output_pairs = reply
		shell_escape = yes
		output = none
}
The program is execute but only for access-request.
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 Toure Mamadou
Envoyé : lundi 24 mai 2010 22:06
À : freeradius-users at lists.freeradius.org
Objet : execute programme when receiving account packet

Hi,
All i'd like to execute an external program when receiving an
Accounting-Request.
I've try

exec ipoque {
		wait = yes
		program = "/bin/sh /opt/mytest %{User-Name}"
		input_pairs = request
		output_pairs = reply
		shell_escape = yes
		output = none
		packet_type = Accounting-Request
}

But the program is not execute even if I comment packet_type =
Accounting-Request line (#packet_type = Accounting-Request).
Can someone help me please.
Regards.

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html





More information about the Freeradius-Users mailing list