Substring using Unlang?

Olivier Beytrison olivier at heliosnet.org
Wed Jul 10 08:34:56 CEST 2013


On 10.07.2013 07:48, Olivier Beytrison wrote:
> if ( ADSL-Agent-Remote-Id =~ /(.{0,31})$/ ) {

if ( ADSL-Agent-Remote-Id =~ /(.{1,32})$/ ) {

that's even better as it won't match an empty attribute (you never know ...)
-- 

 Olivier Beytrison
 Network & Security Engineer, HES-SO Fribourg
 Mail: olivier at heliosnet.org


More information about the Freeradius-Users mailing list