Access-Reject in a php script

manIP manvoip at gmail.com
Wed Oct 24 17:34:09 CEST 2007


Hi all!

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!!!!!!
?>

Thanks a lot for your assistance
Khalid :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20071024/ce894a23/attachment.html>


More information about the Freeradius-Users mailing list