External script
Alan DeKok
aland at deployingradius.com
Sat Apr 25 13:39:59 CEST 2015
On Apr 25, 2015, at 6:28 AM, Amit Butere <amitbutere64 at gmail.com> wrote:
> I am trying to write external Php script and return module codes and match
> those module codes using unlang .
There's a sample script in scripts/exec-program-wait in the distribution "tar" file.
> My script is being called and I can see that in debug.
> The error I get here is .
>
> Failed parsing output from script.php attributes : expecting operator
So... what is the output? Is it a secret?
> I am returning values as 1 for success and 0 for fail
> Ultimately radius says module fail.
>
> I would be checking what operators to return value from Php script.
This is documented, with examples.
http://networkradius.com/doc/3.0.8/raddb/mods-available/exec.html
Alan DeKok.
More information about the Freeradius-Users
mailing list