Server switch

Matthew Newton mcn4 at leicester.ac.uk
Tue Mar 26 14:58:25 CET 2013


On Tue, Mar 26, 2013 at 02:24:21PM +0100, Emmanuel BILLOT wrote:
> # Executing section authorize from file /etc/raddb/sites-enabled/default
> +- entering group authorize {...}
> ++? if (Called-Station-Id =~ /^.*:(.*)$/)
> ? Evaluating (Called-Station-Id =~ /^.*:(.*)$/) -> TRUE
> ++? if (Called-Station-Id =~ /^.*:(.*)$/) -> TRUE
> ++- entering if (Called-Station-Id =~ /^.*:(.*)$/) {...}
> +++[control] returns notfound

   if (Calling-Station-Id =~ /^.*:([a-zA-Z-]+)$/) {
     update control {
       Tmp-String-0 := "%{1}"
     }
   }

Put "quotes" around the %{1}.

I said it wasn't tested :)

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list