Proxy based on User-Name with regex

Alexander Clouter alex at digriz.org.uk
Sat Jun 11 14:45:39 CEST 2011


ivaylosp <ivaylosp at gmail.com> wrote:
> User-Name = "1234abcdefg"
> ............"12341234567"

> if (User-Name =~ /[1-4]{4}[A-Za-z0-9]{6}/)
>
This matches four numbers and then *six* alphanumerics; anywhere in your 
string (substr-esque)...might not be what you want?

Did you mean to include a '/^....$/'?

Cheers

-- 
Alexander Clouter
.sigmonster says: Old programmers never die, they just become managers.




More information about the Freeradius-Users mailing list