Accessing radwho information or accounting request from rlm_perl

eluna emmanuel.luna421 at
Tue May 8 18:57:06 CEST 2012

I need to get the NAS-IP-Address attribute from the Accounting request and
not from the Access request because because I am working with a WDS
environment. These are the access and accounting requests:

rad_recv: Access-Request packet from host port 1645, id=36,
        User-Name = "user"
        Framed-MTU = 1400
        Called-Station-Id = "00-19-56-B0-90-18"
        Calling-Station-Id = "00-1B-77-89-00-15"
        Cisco-AVPair = "ssid=SECURE"
        Service-Type = Login-User
        Message-Authenticator = 0x04664bdb23657848c1dfe846b6e162f6
        EAP-Message =
        NAS-Port-Type = Wireless-802.11
        NAS-Port = 10677114
        NAS-Port-Id = "10677114"
        State = 0xec6d109ee561091c536a9f8f173c1470
        NAS-IP-Address =

rad_recv: Accounting-Request packet from host port 1646, id=43,
        Acct-Session-Id = "000033C4"
        Called-Station-Id = "00-16-47-93-68-E2"
        Calling-Station-Id = "00-1B-77-89-00-15"
        Cisco-AVPair = "ssid=SECURE"
        Cisco-AVPair = "vlan-id=123"
        Cisco-AVPair = "nas-location=unspecified"
        User-Name = "user"
        Cisco-AVPair = "connect-progress=Call Up"
        Acct-Status-Type = Start
        NAS-Port-Type = Wireless-802.11
        Cisco-NAS-Port = "13454"
        NAS-Port = 13454
        Service-Type = Framed-User
        NAS-IP-Address =
        Acct-Delay-Time = 0

As you can see the NAS-IP-Address attributes are different, and I need a
method to get the value of the accounting request because when I need to for
example deauthenticate a user, i need to know what access point is is
actually associated to. Any solutions or hints are very much appreciated. 

View this message in context:
Sent from the FreeRadius - User mailing list archive at

More information about the Freeradius-Users mailing list