Accessing radwho information or accounting request from rlm_perl
eluna
emmanuel.luna421 at gmail.com
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 10.33.0.33 port 1645, id=36,
length=211
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 =
0x020c002b190017030100208aa24d178243e49e8315219bac17f793f2b933eec5b
NAS-Port-Type = Wireless-802.11
NAS-Port = 10677114
NAS-Port-Id = "10677114"
State = 0xec6d109ee561091c536a9f8f173c1470
NAS-IP-Address = 10.33.0.33
rad_recv: Accounting-Request packet from host 10.33.11.33 port 1646, id=43,
length=231
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 = 10.33.11.33
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: http://freeradius.1045715.n5.nabble.com/Accessing-radwho-information-or-accounting-request-from-rlm-perl-tp5695393.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
More information about the Freeradius-Users
mailing list