EXAMPLE: unlang removing attribute inside a test

Mike O'Connor freeradius at pineview.net
Thu Jan 24 12:04:52 CET 2008


Hi Alan

The documentation does not mention these options so I assume that you 
mean it would need writing ?

>   One option is to add more filtering operators.  e.g. "-~", meaning
> "regex match, and remove".  Or perhaps a better way, is to add a
> "filter" section:
>
>     filter request {     # filter out attributes matching the following
> 	  Foo =~ /bar/   #  remove by regex
>     }
>
>   Also, adding a "require" section may be useful, too:
>
>     require request {   # filter out attributes NOT matching ....
> 	Foo =~ /bar/
>     }
>   

As I have not written much C code in 15 years, its going to take me 
awhile to work that one out.

Cheers
Mike



More information about the Freeradius-Users mailing list