hints file based rewrite does not work (migration from freeradius 1.1.x to 3.0.x)
    Bernd 
    bernd at kroenchenstadt.de
       
    Mon Oct 12 16:43:45 CEST 2015
    
    
  
Am 2015-10-12 16:23, schrieb Alan DeKok:
> On Oct 12, 2015, at 10:08 AM, Bernd <bernd at kroenchenstadt.de> wrote:
>> 
>> Thanks a lot for your reply, Alan. I deleted it from hints and put 
>> your snippet into the config, however I still get that error:
> 
>   Escape the % with a backslash.
Escaped all %'s with a backslash, same problem.
  	if (User-Name =~ /bla\-bla\/([^\%]+)\%kroenchenstadt.de/) {
         	update control {
             	User-Name := "\%{1}@kroenchenstadt.de"
         	}
	}
(1)     if (&User-Name =~ /@\\./)
(1)     if (&User-Name =~ /@\\./)   -> FALSE
(1)     if (User-Name =~ /bla\-bla\/([^%]+)\%kroenchenstadt.de/)
(1) ERROR: bla-bla/([^%]+)%kroenchenstadt.de
(1) ERROR:             ^ Invalid variable expansion
(1) ERROR: Failed retrieving values required to evaluate condition
(1)   } # filter_username filter_username = notfound
(1)   [preprocess] = ok
>   And upgrade to 3.0.10.  It makes a big difference.
Thanks, I'll check that. However, the repos just list 3.0.4, so I'd have 
to create an RPM myself (do it quite often, so no show stopper).
>   Alan DeKok.
Bernd
    
    
More information about the Freeradius-Users
mailing list