entering multiple AVP into database

Matt Zagrabelny mzagrabe at d.umn.edu
Fri Feb 5 22:50:46 CET 2021

Greetings FR-users,

I am seeking some advice for getting a list of AVPs into a database.

Our Cisco ASA VPN sends the following vendor attributes to FR:

(2)   Cisco-AVPair = "mdm-tlv=device-platform=win"
(2)   Cisco-AVPair = "mdm-tlv=device-mac=5c-3a-45-aa-ff-ee"
(2)   Cisco-AVPair = "mdm-tlv=device-type=HP HP ProBook 445R G6"
(2)   Cisco-AVPair = "mdm-tlv=device-platform-version=10.0.18363 "
(2)   Cisco-AVPair = "mdm-tlv=device-public-mac=5c-3a-45-aa-ff-ee"
(2)   Cisco-AVPair = "mdm-tlv=ac-user-agent=AnyConnect Windows 4.9.04043"
(2)   Cisco-AVPair =
(2)   Cisco-AVPair =

After stripping off the leading "mdm-tlv=" of the string I am left with a
key, value pair that I'd like to put into the accounting database.

I see three database possibilities:

1. Add new fields to the radacct table for the keys above. New fields would
be "device-platform", "device-mac", etc. I do not know if the set of fields
is fixed or if new ones would be sent along from the NAS. This is one of
the downsides of adding new fields to the radacct table.

2. Create a new one to many table that would contain the key, value pairs
and a foreign key back to the radacct table.

3. Add a JSONB field to the radacct table and put all of the key, value
pairs into a JSONB data structure.

Does anyone have any advice as to a sensible path forward for storing this
AVP data?

Alternatively, does anyone have any success stories of storing AVP data
when the NAS gives multiple entries of the same attribute back to FR?

Thanks for any dialog.



More information about the Freeradius-Users mailing list