(RADIATOR) AcctLogFileFormat

Hugh Irvine hugh at open.com.au
Thu Nov 1 22:10:05 CST 2001


Hello William -


>Hello everyone,
>
>I have the following in radius.cfg:
>         AcctLogFileFormat \
>                 %U \
>                 %{NAS-IP-Address} \
>                 %{NAS-Identifier} \
>                 %{Acct-Status-Type} \
>                 %{Acct-Session-Id} \
>                 %{Acct-Delay-Time} \
>                 %{Acct-Authentic} \
>                 %{Service-Type} \
>                 %{NAS-Port-Type} \
>                 %{NAS-Port} \
>                 %{USR-Modem-Training-Time} \
>                 %{USR-Interface-Index} \
>                 %{Chassis-Call-Slot} \
>                 %{Chassis-Call-Span} \
>                 %{Chassis-Call-Channel} \
>                 %{Unauthenticated-Time} \
>                 %{Calling-Station-Id} \
>                 %{Called-Station-Id} \
>                 %{VPN-ID} \
>                 %{Modulation-Type} \
>                 %{Simplified-MNP-Levels} \
>                 %{Simplified-V42bis-Usage} \
>                 %{Connect-Speed} \
>                 %{Framed-Protocol} \
>                 %{Framed-IP-Address} \
>                 %{VTS-Session-Key} \
>                 %{Call-Arrived-time} \
>                 %{Timestamp}
>
>I tested with:
>radpwtst -trace -s www.prw.net -user
>cummins-pr at prdigital.com -password somepassword -auth_port
>1812 -acct_port 1813 -secret somesecret -dictionary
>/etc/raddb/dictionary.prw
>
>And I get the following in the accounting detail file:
>Thu Nov  1 17:39:17 2001
>         User-Name = "cummins-pr.com at prdigital.com"
>         Service-Type = Framed-User
>         NAS-IP-Address = 203.63.154.1
>         NAS-Port = 1234
>         NAS-Port-Type = Async
>         Acct-Session-Id = "00001234"
>         Acct-Status-Type = Start
>         Timestamp = 1004650757
>
>cummins-pr.com 203.63.154.1  Stop 00001234 0  Framed-User Async
>1234
>       1004650762
>
>
>The desired change in the accounting detail file was to simply
>output the User-Name without the domain, i.e., User-Name =
>"cummins-pr.com".
>
>Where did I go wrong?
>

The first thing you have to do is set up the correct format:

         AcctLogFileFormat %{Timestamp} %n \
                 %t User-Name = %U %n \
                 %t NAS-IP-ADDRESS = %{NAS-IP-Address} %n \
                 %t NAS-Identifier = %{NAS-Identifier} %n \
                 ........

And then you should send it to a different file:

         AcctLogFileName %L/.....

hth

Hugh



-- 

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

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.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list