problem regular expressions in hints file

Ana Gallardo ana.gallardo.77 at gmail.com
Thu Oct 29 10:58:44 CET 2009


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

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 = ...

###DEFAULT Suffix == "@domain.es"
###        Intentos-Reject = ...

###DEFAULT Suffix == "@temp.domain.es"
###        Intentos-Reject = ...


If I use this other DEFAULT entry the request match but Freeradius doesn't
add Stripped-User-Name and I can't authenticate:

DEFAULT User-Name =~ "@(temp\.)?domain.es$", Strip-User-Name = Yes
        Intentos-Reject = ...

###DEFAULT Suffix == "@domain.es"
###        Intentos-Reject = ...

###DEFAULT Suffix == "@temp.domain.es"
###        Intentos-Reject = ...

I don't know if I can use regular expressions with Suffix/Preffix atributes.

Thank you very much and sorry for my english.


-- 
____________________

 Ana Gallardo Gómez
____________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091029/a9648a14/attachment.html>


More information about the Freeradius-Users mailing list