bug in token.c ?
Phil Mayers
p.mayers at imperial.ac.uk
Tue Jul 26 10:41:36 CEST 2011
On 07/26/2011 07:14 AM, Oliver Schröder wrote:
>
> DEFAULT User-Name =~ "(.*\.de\.de$)"
> Hint := "Blacklist"
>
> It is aimed to match User-Names like "x at whatever.de.de". In this case
> the quoted string should not be interpreted but given to regcomp as it is.
As has been explained to you, that isn't how FreeRADIUS config parser
works. The files are parsed and tokenised before syntax is applied;
there's no way for the parser to "know" it's a regexp.
You need to write:
DEFAULT User-Name =~ "(.*\\.de\\.de$)"
...as I also mentioned, this is somewhat common; Exim for example
requires that you do this in it's config file. This is not unusual.
More information about the Freeradius-Devel
mailing list