problems with hints file

wekz fbl.list at gmail.com
Fri May 5 10:01:45 CEST 2006


Hi all,

I use freeradius1.1.1 + ldap. And peap or eap-tls for authorization.

I've been trying to use hints.file for changing the User-Name. When a laptop
user which is in a domain tries to do a peap authentication, windows sends a
User-Name that follows this pattern (at least the ones I've seen):

                                             DOMAIN\5c\5cLOGIN

I'm trying to catch up the LOGIN name so the radius can perform a search in
ldap.

I've modify hints.file including this line:

                      DEFAULT User-Name =~ "^([^\\]+)\\5c\\5c([^\\]+)"
                                      User-Name := "%{2}"


The problem is that this rule matches but it changes the User-Name for an
empty string.
If I put a string instead of %{2} it does change it right.

                      DEFAULT User-Name =~ "^([^\\]+)\\5c\\5c([^\\]+)"
                                      User-Name := "JOHNDOE"


I don't know if that is a bug or if there's something I'm doing wrong and
didn't realize.

¿?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060505/2cab2030/attachment.html>


More information about the Freeradius-Users mailing list