help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] Filter script using PHP


From: Morten Winther
Subject: Re: [Help-gnu-radius] Filter script using PHP
Date: Wed, 05 Oct 2005 11:54:48 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)

Sergey Poznyakoff wrote:

Bill Neely <address@hidden> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]