Access-Reject in a php script



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 :)


This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.