Access-Reject in a php script

Alan DeKok aland at deployingradius.com
Wed Oct 24 17:48:25 CEST 2007


manIP wrote:
> I am using a script for the authentication and it is working well. I can
> send a list of attributes without any problem.
> Now I want to send an "Access-Reject" if the authentication fails but I
> do not know how...I would be very grateful if someone could tell me how
> to do so.
> herein is a test script:
> 
> #!/usr/bin/php
> <?php
> $argv = $_SERVER['argv'];
> if ( $argv[1] == "toto")
>    echo " Session-Timeout:=100";
> else
>    echo " Access-Reject";  //NOT WORKING!!!!!!

  It's not documented as doing that.

  Have the script return an error, and no output.

  Alan DeKok.



More information about the Freeradius-Users mailing list