Dear Savers ... I got this error in my debug the php program check something and return 0 for true and -1 for false and the php code work fine but the I don't understand what to echo back or return to freeradius to understand the situation I try to echo and not echo when I echo the value it pass like this so what is the best way to do such a thing (2) update control { (2) Executing: /usr/bin/php -f /opt/ajrass/egy-radius-cloud/freeradius/exec/dns.php: (2) Program returned code (0) and output ''1" (2) Tmp-Integer-0 := 0 (2) } # update control = noop (2) if (Tmp-Integer-0 < 0 ){ (2) ERROR: Failed retrieving values required to evaluate condition (2) } # policy call_dns = noop Mohammed
On 13/08/2022 22:35, mohamed almeshal wrote:
but the I don't understand what to echo back or return to freeradius to understand the situation I try to echo and not echo when I echo the value it pass like this so what is the best way to do such a thing
See raddb/mods-available/echo You should output a list of attributes & values. The output_pairs config option determines what attribute list they are put in. Return codes are documented in that file, as it pretty much everything else for the exec module. Also see raddb/mods-available/exec. -- Matthew
participants (2)
-
Matthew Newton -
mohamed almeshal