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?

What do the rest of you do? Do you just jam the whole "[EMAIL PROTECTED]"
into the Username field?

Thanks!

Dave

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