Sergey Poznyakoff wrote:
Bill Neely <[EMAIL PROTECTED]> wrote:
Does anyone have an example of a filter script written in PHP. I can;t figure
out what to pass back to have the filter accept or reject the user.
--
Hi,
Should be same syntax as Exec-Program-Wait, where we use php. Use
exit(0); or exit(1);
if($left <= 0)
{
print 'Reply-Message="Access denied: No time left - ' . "$to out of
$et minutes used" . '"';
exit(1);
}
print "Session-Timeout=$left";
exit(0);
--
Best regards
Morten Winther
System & Application Architect
_______________________________________________
Help-gnu-radius mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-radius