Hello Jaafar -
Thanks for the information.
I have been doing some experiments with your code here, and the problem is due to the code executing for accounting requests when it shouldn't and causing the accounting response to be suppressed.
Here is the code that works:
sub
{
my $p = ${$_[0]};
my $rp = ${$_[1]};
my $result = ${$_[2]};
my $code = $p->code();
if ($code eq 'Access-Request')
{
my $name = $p->get_attr('User-Name');
my $timeout = $rp->get_attr('Session-Timeout');
my $state = $rp->get_attr('State');
if (($result == $main::ACCEPT) && ($timeout <= 0))
{
${$_[2]} = $main::REJECT;
${$_[1]}->change_attr('Reply-Message', "Prepaid Time Limit Reached");
}
elsif (($result == $main::ACCEPT) && ($state eq 'I'))
{
${$_[2]} = $main::REJECT;
${$_[1]}->change_attr('Reply-Message', "Account is Inactive");
}
elsif (($result == $main::ACCEPT) && ($state eq 'E'))
{
${$_[2]} = $main::REJECT;
${$_[1]}->change_attr('Reply-Message', "Account has Expired");
}
}
return;
}
regards
Hugh
On Tuesday, Jan 28, 2003, at 12:23 Australia/Melbourne, Jaafar Bin Sarim wrote:
Hello Hugh Radiator starts up message:---------------------------------------------------------------------- Tue Jan 28 09:20:53 2003: DEBUG: Creating authentication port 0.0.0.0:2312 Tue Jan 28 09:20:53 2003: DEBUG: Creating accounting port 0.0.0.0:2313 Tue Jan 28 09:20:53 2003: INFO: Server started: Radiator 3.4 on paris ---------------------------------------------------------------------- Best Regards Jaafar Sarim SingNet On Tue, 28 Jan 2003, Hugh Irvine wrote:
Hello Jaafar -
Thanks very much for sending the debug files.
It would appear that there is a problem with your hook, as the problem
only occurs when the hook is used.
I would be very interested to see the messages as Radiator starts up
when you have the hook specified to see if there is an error.
You might also put some "print ..." statements in your hook code to see
what is happening.
regards
Hugh
On Monday, Jan 27, 2003, at 11:46 Australia/Melbourne, Jaafar Bin Sarim
wrote:
Hello Hugh
Pls find attached the logs.
radpwtstn.txt and radiuslogn.txt
^ ^
n =1 indicates test with both "AccountingStopsOnly" and "PostAuthHook"
removed
n =2 indicates test with "PostAuthHook" removed
n =3 indicates test with "AccountingStopsOnly" removed
I'm using Radiator 3.4
uname -aLinux paris 2.2.16-4.lfssmp #1 SMP Wed Jul 12 14:00:26 EDT 2000 i686 Best Regards Jaafar Sarim SingNet On Sun, 26 Jan 2003, Hugh Irvine wrote:<radpwtst1.txt><radiuslog1.txt><radpwtst2.txt><radiuslog2.txt><radpwt st
Hello Jafar -
Thanks for sending the files.
Could you please try an experiment for me, by removing the
"AccountingStopsOnly" and the "PostAuthHook" and trying your tests
again. I would like to see which one is causing the problem. And could
you also please send me the Radiator version and the hardware/software
platform you are running on?
regards
Hugh
3.txt><radiuslog3.txt>
-- Radiator: the most portable, flexible and configurable RADIUS server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence.
-- Radiator: the most portable, flexible and configurable RADIUS server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence. === Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.
