Hello Andrew -

On Wed, 10 May 2000, Andrew Pollock wrote:
> > -----Original Message-----
> > From: Hugh Irvine [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 10 May 2000 12:24 PM
> > To: Andrew Pollock; [EMAIL PROTECTED]
> > Subject: Re: (RADIATOR) Logging accounting records locally unmodified,
> > then proxying without the realm
> >
> >
> >
> > Hello Andrew -
> >
> > On Wed, 10 May 2000, Andrew Pollock wrote:
> > > Hi guys,
> > >
> > > Is it possible to log accounting records locally in an
> > unmodified form, then
> > > strip off the realm before proxying the accounting records to another
> > > server? I want the realm in the local detail file but I don't
> > want the realm
> > > in the accounting record I forward to the other server.
> > >
> >
> > Yes. You can use the AcctLogFileName and AcctLogFileFormat
> > parameters in your
> > realm(s) and specify one of the "%" special characters to log
> > (probably "%u").
> > Have a look at sections 6.2, 6.13.4 and 6.13.5 in the Radiator
> > 2.15 reference
> > manual.
> 
> Correct me if I'm wrong, but by using AcctLogFileFormat, don't I lose the
> standard RADIUS format of the detail file? I want a standard format detail
> file, I just want it to log the User-Name unmodified, so I basically want it
> to log %u for the User-Name instead of %U
> 

Then the simplest thing is to chain together two AuthBy's, the first to log the
original username in standard format (an AuthBy FILE with a DEFAULT would do),
and the second to do the rewrite and other processing.

# configure two AuthBy's with an AuthByPolicy

<Realm ....>
        AuthByPolicy ContinueAlways
        <AuthBy FILE>
                Filename %D/default.accounting
                AcctLogFileName .....
        <AuthBy
        <AuthBy ....
                RewriteUsername .....
                ....
        </AuthBy>
</Realm>

hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



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