Adding variable to logs

Nick Khamis symack at gmail.com
Tue Apr 30 19:07:46 CEST 2013


Hello Everyone,

We are using freeradius for accounting purposes. When trying to add a
new variable to
the logs (e.g., NAS-PORT-TYPE) what is required to be modified on the
client. We are using radiusclient-ng.

In the default dictionary:

ATTRIBUTE       NAS-Port-Type           61      integer

VALUE           NAS-Port-Type           Async                   0
VALUE           NAS-Port-Type           Sync                    1
VALUE           NAS-Port-Type           ISDN                    2
VALUE           NAS-Port-Type           ISDN-V120               3
VALUE           NAS-Port-Type           ISDN-V110               4


However, NAS-Port-Type is not being included in the logs,



Tue Apr 30 05:50:08 2013
        Acct-Status-Type = Start
        Service-Type = SIP
        Sip-Response-Code = 200
        Sip-Method = Invite
        Event-Timestamp = "Apr 30 2013 05:50:08 EDT"
        Sip-From-Tag = "3B7C575D-E798317A"
        Sip-To-Tag = "as183d6189"
        Acct-Session-Id = "b7c2af61-2d1b4daf-e558033c at 192.168.2.11"
        User-Name = "1001 at example.server.com"
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 127.0.0.1
        Acct-Unique-Session-Id = "f538381d8187adf7"
        Timestamp = 1367315408


Is NAS-PORT-TYPE not being included in the log because it's null?
Please excuse the noob question.

Kind Regards,

Nick


More information about the Freeradius-Users mailing list