Cisco-AVPair = "client-mac-address=000f.ea20.e1ad" to Calling-Station-Id = "000f.ea20.e1ad" rule

Victor kha0s at ukr.net
Thu Feb 8 11:15:00 CET 2007


Hello,

I have accouning packet with attributes like:

Acct-Session-Id = "0/0/1/3_01000000000000CC"
Cisco-AVPair = "client-mac-address=000f.ea20.e1ad"
Framed-Protocol = PPP
Framed-IP-Address = 192.168.0.235
User-Name = "global"                        
Cisco-AVPair = "connect-progress=LAN Ses Up"
Cisco-AVPair = "nas-tx-speed=100000000"     
Cisco-AVPair = "nas-rx-speed=100000000"     
...

How can i create (or rewrite if exist) Calling-Station-Id attribute
with value 000f.ea20.e1ad (MAC from Cisco-AVPair =
"client-mac-address=000f.ea20.e1ad") for SQL accounting?
If exist Cisco-AVPair with client-mac-address, sure.

ps: Im not sure than in current accounting packet its in
%{Cisco-AVPair[0]} and not %{Cisco-AVPair[3]} or %{Cisco-AVPair[156]},
etc.

Thanx!

-- 
Best regards,
 Victor                          mailto:kha0s at ukr.net




More information about the Freeradius-Users mailing list