attrs filtering - regex pattern matching

Charles Gregory cgregory at hwcn.org
Fri Jun 26 16:31:38 CEST 2009


On Thu, 25 Jun 2009, Francisco wrote:
> I'd like our radius proxy server to allow an A/V pair, but, cannot find any
> examples where I can apply any regex type rules to allow a range of values.
> For example, I received the following from a remote radius server :
> Cisco-AVPair = vpdn:ip-addresses=10.10.1.4
> and would want to (using attrs) allow anything that matches:
> Cisco-AVPair = vpdn:ip-addresses=.*
> Where ".*" would be anything following the "="
> How might I allow this using attrs?
> I'm running freeradius 1.0.5
> I can't upgrade to 2.x yet, so I'm looking for suggestions/feedback for 1.x

LOL! Hi Francisco! Fancy meeting you here! ;)

Did you try:

Cisco-AVPair =~ "vpdn:ip-addresses=.*"

?? I found this in 'man 5 users'.....
So you're on 1.x too, huh? Funny how many of us are. :)

- Charles




More information about the Freeradius-Users mailing list