Removing all attributes from a packet for a particular vendor

Alan DeKok aland at deployingradius.com
Fri Jun 25 19:45:56 CEST 2021


On Jun 25, 2021, at 12:39 PM, Paul Moser via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> 
> Is it possible to remove all attributes of a specific vendor from a request/reply?
> 
> I'm currently doing
> 
> update request {
>   <attribute_name_1> !* ANY
>   <attribute_name_2> !* ANY
>   ...
> }
> 
> which works, but does mean I need to make sure I keep my code in sync with any attributes that get added to that vendor.

  Unfortunately, there's no easy way to do this in v3.  You could write a simple C module to do it.

  It might be possible to fix the attr_filter module to do this.  Right now you can filter on Vendor-Specific, but not on a vendor.  Let me take a look.

  Alan DeKok.




More information about the Freeradius-Users mailing list