On Fri, 2007-07-06 at 19:47 +0100, [EMAIL PROTECTED] wrote:
> Hi,
> 
> > I've about got it, but now I am getting an eap error about the username 
> > isn't correct.
> > 
> > I added this about preprocess:
> > attr_rewrite add-dollar-sign {
> >                attribute = User-Name
> >                searchfor = "^host/(.*)"
> >                searchin = packet
> >                new_attribute = no
> >                replacewith = "%{1}$"
> >        }
> 
> you cannot play with User-Name - that is returned in the EAP
> conversation and if it has changed then the auth wont work.
> copy the value to eg Stripped-User-Name and then use that variable
> to do the auth with (as per that example page)

Shouldn't he be using %{mschap:User-Name} rather than attr_rewrite
hacks?

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to