Dictionary question

Matthew Newton mcn at freeradius.org
Sun Feb 26 22:40:42 UTC 2023



On 26/02/2023 19:17, Igor Smitran wrote:
> Cisco-AVPair   +=  subscriber:sub-qos-policy-in=1.5Mbps
> 
> Is it possible to make it look like this:
> 
> Cisco-AVP-qos-policy-in    += 1.5Mbps
> 
> And when radius sends response to NAS it will be converted to:
> 
> Cisco-AVPair   +=  subscriber:sub-qos-policy-in=1.5Mbps

No. The preprocess module can parse Cisco-AVpair and split it up into 
separate attributes, if they have been defined in the local dictionary 
with the same name (see the preprocess config for the setting).

But there's nothing to go the other way and create it, you'll need to 
define local attributes and then concatenate them all yourself. Should 
be simple enough with a bit of unlang (and a policy to keep things tidy, 
if you've got more than one or two to do).

-- 
Matthew


More information about the Freeradius-Users mailing list