Thanks for the tip.

>From a Radiator point of view, we are simply logging to a standard
"detail" file. (However, from our *system's* point of view, we parse
that file and upload it into a Sql database. Don't worry about this;
I'll handle those details.)

So I just need the detail file to appear correct. Yes, I would rather
log "UserName and Realm". What I'm asking is *how*? Username doesn't
appear to strip off the Realm for accounting, even after a Rewrite; and
the Realm doesn't appear anywhere else in the accounting record. How can
I split them apart from within Radiator ?

Also, I'm still curious how the rest of you handle logging realms?

Thanks!

Dave

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Hugh Irvine
Sent: Monday, April 24, 2000 8:12 PM
To: Dave Kitabjian; '[EMAIL PROTECTED]'
Subject: Re: (RADIATOR) Accounting for Realms?



Hello Dave -

On Tue, 25 Apr 2000, Dave Kitabjian wrote:
> What is the proper or best way to handle Accounting for Realms?
> 
> It appears that, by default, regardless of whether the Username is
> rewritten, the Realm is just tagged onto the Username for Accounting:
> 
>       [EMAIL PROTECTED]
> 
> and that's what gets exported to the Accounting record (and inserted
> into our database) as Username. This raises a few questions for me:
> 
> 1) Since I'm performing RewriteUserName in the GLOBAL section,
shouldn't
> this affect what is saved as the Accounting record's Username
attribute,
> so that only "joe" gets logged, rather than "[EMAIL PROTECTED]"?
> 
> 2) How does the "rest of the world" log realm info? I could have sworn
> that at one point earlier in my development, that I saw this info
broken
> down into "User-Id" and "User-Realm". It seems more logical to me to
> store this info into two db columns:
> 
>       UserName   Realm
>       ---------- ----------------
> 
> but that's not practical unless the Accounting record breaks it up
> accordingly. If I strip off the Realm with:
> 
>       # Strip off the realm:
>       RewriteUsername s/^([^@]+).*/$1/
> 
> can I add it to the Accounting attribute list somehow?
> 

If you are using an SQL database, you can write whatever
AcctSQLStatements are
appropriate for your installation. If you would rather log UserName and
Realm
as you show above, that's fine.

hth

Hugh

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

Reply via email to