attr_filter: remove everything, except the avps1,avp2,..
Hi, Always when I need to remove some avp from a list, I do something like. update <list> { <avp1> !* ANY <avp2> !* ANY ....... } But, I would like to know if exist some way to do in an inverted match. something like "remove everything, except the avps1,avp2,..." -- Jorge Pereira
On 23 Sep 2015, at 20:26, Jorge Pereira <jpereiran@gmail.com> wrote:
Hi,
Always when I need to remove some avp from a list, I do something like.
update <list> { <avp1> !* ANY <avp2> !* ANY ....... }
But, I would like to know if exist some way to do in an inverted match. something like "remove everything, except the avps1,avp2,..."
That'd be the attr_filter module? Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Hi,
But, I would like to know if exist some way to do in an inverted match. something like "remove everything, except the avps1,avp2,..."
That'd be the attr_filter module?
yes. exactly., just call a version of the attr_filter module which contains your whitelist. everything else is stripped out...thats it job :-) alan
participants (3)
-
A.L.M.Buxey@lboro.ac.uk -
Arran Cudbard-Bell -
Jorge Pereira