Cisco-AVPair Accounting
Bryan Campbell
bbc at misn.com
Tue Dec 8 18:02:51 CET 2009
O.K.
What is the best way to accomplish the following . . .
For a specific NAS-IP-Address=10.10.10.10
Accounting packet includes the following . . .
%{Calling-Station-Id}(does not exist)
%{client-mac-address}=0000.0000.0000
Need to write the value for . . .
%{client-mac-address} into %{Calling-Station-Id}
. . . so that the Calling-Station-Id will be written
to the MySQL database radacct table.
Bryan -
Michael Bowe wrote:
>> One of the attributes we are after is the client-mac-address from
>> Cisco-AVPair = "client-mac-address=0012.3fb2.15d2".
>>
>> So far it is now converted to an attribute of its own
>> client-mac-address=0012.3fb2.15d2. (by setting cisco-av-hack to yes
>> and
>> adding some attributes to the dictionary)
>>
>> Now to get it to be the callingstationid. Looks like that will require
>> that attr_rewrite be used to redefine callingstationid to be the mac
>> address defined as client-mac-address.
>>
>> Still reading a bit on how to get that done. Anyone have any
>> suggestions? If so, please send them along.
>
> Hi,
>
> Tweak the freeradius conf
> with_cisco_vsa_hack = yes
>
> Add dictionary entry something like this :
> ATTRIBUTE client-mac-address 3004 string
>
> Give the dialup.conf a bit of a tweak, so if calling-station-id isn't
> available, try putting the client-mac-address instead :
> Change
> '%{Calling-Station-Id}'
> To
> '%{Calling-Station-Id:-%{client-mac-address}}'
>
> Michael.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list