Re: your mail

Dave Andersen (angio@aros.net)
Wed, 4 Sep 1996 13:11:53 -0600 (MDT)

Lo and behold, Old Man once said:
> > You're likely to have some duplicate accounting entries in your RADIUS
> > accounting files, but nearly all RADIUS events are going to be logged
> > properly at least once. In fact, if the portmaster didn't crash or
> > exceed its accounting backlog (unlikely in a calm network environment),
> > it's almost certain.
>
> Duplicate accounting records... wouldn't this make it hard, for say a perl
> script, to count how long a user has been online?

Not really.

Tue Sep 3 21:14:31 1996
Acct-Session-Id = "1300230C"
User-Name = "someuser"
Client-Id = 205.164.111.18

When taken together, the Acct-Session-Id, User-Name, and Client-Id are
unique for a reboot of the portmaster. In addition, the odds are really,
really good that they'll be unique for multiple reboots as well, unless
you only have one user. :)

if ($Used{"$sesid$username$client") {
next;
} else {
$Used{"$sessid$username$client")++;
}

Dave

-- 
angio@aros.net                Complete virtual hosting and business-oriented
system administration         Internet services.  (WWW, FTP, email)
http://www.aros.net/          http://www.aros.net/about/virtual
  "There are only two industries that refer to their customers as 'users'."