FreeRadius exec module not working
Matthew Newton
mcn4 at leicester.ac.uk
Tue Jan 12 12:54:59 CET 2016
On Tue, Jan 12, 2016 at 11:30:08AM +0000, Arash Shams wrote:
> exec sendwelsms {
> wait = no
> program = "/root/sendsms.sh '%{User-Name} %{Huntgroup-Name}'"
> input_pairs = request
> shell_escape = yes
> output = file
> }
>
>
> i passed %{User-Name} as $1 and %{Huntgroup-Name} as $2 to that script .
>From the above quoting it looks like you passed
"%{User-Name} %{Huntgroup-Name}" as $1 into the script.
> now its not working any suggestion ?
What does the debug log say?
I suspect your program setting needs to be something more like
program = "/bin/sh -c '/root/sendsms.sh %{User-Name} %{Huntgroup-Name}'"
untested - you probably want correctly escaped quotes around the
parameters.
Matthew
--
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
More information about the Freeradius-Users
mailing list