Re: (RADIATOR) AccountingHandled

2002-08-28 Thread Hugh Irvine


Hello Ray -

The only way to tell what is going on is to look at a trace 4 debug from 
Radiator showing the problem.

I am guessing that the accounting response that Radiator is sending is 
being dropped somewhere on the return path to the LNS/NAS. Either that 
or there is simply an IOS software bug.

regards

Hugh


On Wednesday, August 28, 2002, at 05:44 PM, [EMAIL PROTECTED] wrote:

> Hi,
>
>
>
>   I've already put AccountingHandled on my config file. I wonder
> why I still received Retransmission coming from my LNS Cisco 7206.
>
> Here is my config
>
> Foreground
> AuthPort 1645
> AcctPort 1646
> LogDir  /data/LOGFILE
> LogFile %L/%Y-%m-%d-%H-logfile.log
> DbDir /usr/local/etc/raddb
> Trace 4
> SocketQueueLength 100
> LogMicroseconds
>
> 
> Secret mysecret
> DupInterval 60
> 
>
> 
>  AccountingHandled
>  MaxSessions 1
>  SessionDatabase TEST
>  #RewriteUsername   tr/A-Z/a-z/
>  AcctLogFileName %L/TEST/%Y-%m-%d-detail
>  PasswordLogFileName %L/TEST/%Y-%m-%d-password
>  AcctLogFileFormat %m %d %Y %H:%M:%S NAS-IP-Address=%{NAS-IP-
>  Address} NAS-Port=%{NAS-Port} User-Name=%{User-Name} Called-Station-
> Id=%{Called-Station-Id} Calling-Station-Id=%{Calling-Station-Id} Acct-
>  Status-Type=%{Acct-Status-Type} Service-Type=%{Service-Type} Acct-
>  Session-Id=%{Acct-Session-Id} Framed-Protocol=%{Framed-Protocol}
> Framed-IP-Address=%{Framed-IP-Address} Acct-Session-Time=%{Acct-
> Session-Time}Tunnel-Server-Auth-ID=%{Tunnel-Server-Auth-ID} Acct-
> Terminate-Cause=%{Acct-Terminate-Cause}
> PreAuthHook file:"%D/sample.hook"
>  
>   .
>   .
>   .
>   .
>  
> 
>
>
>
> Ray
>
> ===
> 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.
>
>

--
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.



(RADIATOR) AccountingHandled

2002-08-28 Thread rcortez

Hi,



  I've already put AccountingHandled on my config file. I wonder 
why I still received Retransmission coming from my LNS Cisco 7206.

Here is my config 

Foreground
AuthPort 1645
AcctPort 1646
LogDir  /data/LOGFILE
LogFile %L/%Y-%m-%d-%H-logfile.log
DbDir /usr/local/etc/raddb
Trace 4
SocketQueueLength 100
LogMicroseconds


Secret mysecret
DupInterval 60



 AccountingHandled
 MaxSessions 1
 SessionDatabase TEST
 #RewriteUsername   tr/A-Z/a-z/
 AcctLogFileName %L/TEST/%Y-%m-%d-detail
 PasswordLogFileName %L/TEST/%Y-%m-%d-password
 AcctLogFileFormat %m %d %Y %H:%M:%S NAS-IP-Address=%{NAS-IP-
 Address} NAS-Port=%{NAS-Port} User-Name=%{User-Name} Called-Station-
Id=%{Called-Station-Id} Calling-Station-Id=%{Calling-Station-Id} Acct-
 Status-Type=%{Acct-Status-Type} Service-Type=%{Service-Type} Acct-
 Session-Id=%{Acct-Session-Id} Framed-Protocol=%{Framed-Protocol} 
Framed-IP-Address=%{Framed-IP-Address} Acct-Session-Time=%{Acct-
Session-Time}Tunnel-Server-Auth-ID=%{Tunnel-Server-Auth-ID} Acct-
Terminate-Cause=%{Acct-Terminate-Cause}
PreAuthHook file:"%D/sample.hook"
 
  .
  .
  .
  .
 




Ray

===
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.



Re: (RADIATOR) AccountingHandled

2002-08-19 Thread Hugh Irvine


Hello Ray -

Please have a look at section 6.16.10 in the Radiator 3.1 reference 
manual.

You will get a response *much* quicker from the manual than you will 
from the mailing list.

# define Realm or Handler



AccountingHandled


.

.




regards

Hugh


On Tuesday, August 20, 2002, at 08:26 AM, [EMAIL PROTECTED] wrote:

> Hi,
>
>
>
>Again I would like to know where can I put AccountingHadled in my
> config file ? I'm running an  clause.
>
>
>
> Ray
>
> ===
> 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.
>
>

NB: I am travelling this week, so there may be delays in our 
correspondence.

--
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.



(RADIATOR) AccountingHandled

2002-08-19 Thread rcortez

Hi,



   Again I would like to know where can I put AccountingHadled in my 
config file ? I'm running an  clause.



Ray

===
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.



Re: (RADIATOR) AccountingHandled Question

2002-01-29 Thread Hugh Irvine


Hello William -

Yes - the AccountingHandled flag will always reply to any accounting requests 
for the Realm of Handler in which it is used.

Section 6.16.10 in the Radiator 2.19 reference manual.

regards

Hugh


On Wed, 30 Jan 2002 06:32, William Hernandez wrote:
> Currently Radiator is configured to write accounting start/stop records
> to the detail file. The NAS retransmits accounting start/stop records if
> an acknowledgement is not received. In our particular setup an
> acknowledgement will never be sent to the NAS. Can I use
> AccountingHandled to eliminate from the detail file the retransmitted
> accounting start/stop records?
>
> Thanks in advance,
> William
>
>
> ===
> 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.

-- 
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.



(RADIATOR) AccountingHandled Question

2002-01-29 Thread William Hernandez

Currently Radiator is configured to write accounting start/stop records
to the detail file. The NAS retransmits accounting start/stop records if
an acknowledgement is not received. In our particular setup an
acknowledgement will never be sent to the NAS. Can I use
AccountingHandled to eliminate from the detail file the retransmitted
accounting start/stop records?

Thanks in advance,
William


===
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.



(RADIATOR) AccountingHandled broken in 2.15

2000-03-20 Thread Aaron Nabil


I just upgraded from 2.12.1 to 2.15 tonite, and AccountingHandled is
broken.  The cause appears to be that the default behavior for a
non-handled request changed.  Below is the patch I used to fix it
for illustrative purposes (and to get back on the air), I simply restored
the original non-handled behavior for accounting requests.

Oh, since it's here.  I guess I'll mention that I think Handler.pm is the
wrong place to cleaning up the session db.  First off, an access request
is not a start record, there isn't any explicit gaurantee that an access
request is actually going to result in a session. Second, the real start
record will clean it up by itself.  Third, since there is no locking on
SessDBM databases (we are running split authentication/accounting
processes here for performance) it's an opportunity for an access
collision.  So that's why I commented it out locally.

Also the Hook syntax changed from 2.12.1, but since someone else mentioned
that on the list (which I regret I can no longer pay much attention to due
to the rapidly declining s/n ratio) I was able to repair it quickly. May I
suggest that future releases include version migration notes?

Cheers,

Aaron

*** Radiator-2.15/Radius/Handler.pm Mon Feb 14 23:09:41 2000
--- Radiator-2.15-local/Radius/Handler.pm   Mon Mar 20 01:59:41 2000
***
*** 262,268 
  if ($p->code eq 'Access-Request')
  {
# If we lost a Stop for this port, clean up the session database
!   $sessdb->delete($original_username, $nas_id, $nas_port, $p);
  
if (defined $self->{MaxSessions}
&& $sessdb->exceeded($self->{MaxSessions}, $original_username, $p))
--- 262,268 
  if ($p->code eq 'Access-Request')
  {
# If we lost a Stop for this port, clean up the session database
! # $sessdb->delete($original_username, $nas_id, $nas_port, $p);
  
if (defined $self->{MaxSessions}
&& $sessdb->exceeded($self->{MaxSessions}, $original_username, $p))
***
*** 480,485 
--- 480,486 
  
  # $handled can be IGNORE, ACCEPT or REJECT
  my $handled = $main::REJECT; # If there is no handlers
+ $handled = $main::IGNORE if ($p->code eq 'Accounting-Request');
  
  # Make sure we always copy the Proxy-State
  my $ps = $p->getAttrByNum($Radius::Radius::PROXY_STATE);




===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.