Exec remote command in Preprocess

Alan DeKok aland at deployingradius.com
Fri Feb 28 23:33:31 CET 2014


Rafal Pilos wrote:
> Thanks, I updated config and now is accepted.

  Good.

> However theres another problem, script returns 257 but Exec: program
> returned: 0

  No... the return code from the program is 0.  The string returned is
different.

> Fri Feb 28 22:59:34 2014 : Debug: Exec output: 257

  That's the program output.

> Fri Feb 28 22:59:34 2014 : Info: Exec: program returned: 0

  That's the program return value.

> Fri Feb 28 22:59:34 2014 : Info: result 0
> Fri Feb 28 22:59:34 2014 : Info:        expand: %{exec:/test/script.sh
> %{User-Name}} -> 257
> Fri Feb 28 22:59:34 2014 : Info: ? Evaluating ("%{exec:/test/script.sh
> %{User-Name}}" == "257") -> FALSE

  Hmm... you probably have the "exec" module misconfigured.

  You need:

wait = yes
output = none

  Alan DeKok.


More information about the Freeradius-Users mailing list