problem regular expressions in hints file
Alan DeKok
aland at deployingradius.com
Thu Oct 29 12:49:00 CET 2009
Ana Gallardo wrote:
> Hello, I'm using Debian and Freeradius 2.0.4-3
>
> I want to use the hints file to add an attribute named Intentos-Reject.
> I would like to use only one DEFAULT entry to match with @domain.es
> and with @temp.domain.es
Don't use "hints" for that.
> If I use this DEFAULT entry the request don't match:
>
> #/etc/freeradius/hints
>
> DEFAULT Suffix =~ "@(temp\.)?domain.es$",
> Strip-User-Name = Yes
> Intentos-Reject = ...
The Suffix attribute matches a suffix, not a regular expression.
Use "unlang" for this kind of matching. See "man unlang"
Alan DeKok.
More information about the Freeradius-Users
mailing list