(RADIATOR) AcctLogFileFormat and multiple cisco-avpairs

Nicolai van der Smagt nicolai.vandersmagt at bbned.nl
Mon Jul 5 15:42:28 CDT 2004


Hello,

We are using Radiator for handling TACACS+ requests. I am trying to change the format of command accounting from the default:

Mon Jul  5 16:29:04 2004
        NAS-IP-Address = 192.168.0.252
        NAS-Port-Id = "tty1"
        Calling-Station-Id = "192.168.0.142/<0>"
        Timestamp = 1089037744
        NAS-Identifier = "TACACS"
        User-Name = "nsmagt"
        cisco-avpair = "task_id=133<0>"
        cisco-avpair = "service=shell"
        cisco-avpair = "timezone=UTC"
        cisco-avpair = "priv-lvl=15<0>"
        cisco-avpair = "cmd=configure terminal <cr>"
        Timestamp = 1089037744

To a one-liner something like this:

Jul  5, 2004 16:46 nsmagt at 192.168.0.142 tty2 at 192.168.0.252 task_id=144 service=shell timezone=UTC priv-lvl=15 cmd=configure terminal

using AcctLogFileFormat directive. I tried:

AcctLogFileFormat       %B %{User-Name}@%{Calling-Station-Id}\010 %{NAS-Port-Id}@%N %{cisco-avpair} %{cisco-avpair} %{cisco-avpair} %{cisco-avpair} %{cisco-avpair}

This results in:

Jul  5, 2004 17:10 nsmagt at 192.168.0.142 tty1 at 192.168.0.252 task_id=151 task_id=151 task_id=151 task_id=151 task_id=151

So apparently %cisco-avpair only holds the first cisco-avpair from the accounting request. What variable can I use in
the AcctLogFileFormat to describe the subsequent cisco-avpairs in the accounting request?
-- 
Mvg,

Nicolai van der Smagt	~	  BBned NV.
Security Officer	~	BBeyond BV.
PGP ~ http://www.bbned.nl/pgp/security.txt

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