EAP-TTLS outer identity & accounting

Thibault Le Meur Thibault.LeMeur at supelec.fr
Wed Mar 14 17:25:20 CET 2007



> -----Message d'origine-----
> De : 
> freeradius-users-bounces+thibault.lemeur=supelec.fr at lists.free
> radius.org 
> [mailto:freeradius-users-bounces+thibault.lemeur=supelec.fr at li
> sts.freeradius.org] De la part de Sam Schultz
> Envoyé : mercredi 14 mars 2007 17:13
> À : freeradius-users at lists.freeradius.org
> Objet : Re: EAP-TTLS outer identity & accounting
> 
> 
> 
> 
> On Tue, 13 Mar 2007 13:15:52 -0500 Alan DeKok 
> <aland at deployingradius.com> wrote:
> >Sam Schultz wrote:
> >>
> >> This should be solvable by adding something like
> >> 'User-Name = %{User-Name}' to the DEFAULT entries in the users 
> >file,
> >> correct?
> >
> >  Yes.
> 
> One of my users file DEFAULT entries look like this:
> 
> DEFAULT         Realm == "test", Autz-Type := sql-test, User-Name = 
> "%u"
> 
> However, FreeRADIUS tells me this:
> 
> Error: Invalid operator for item User-Name: reverting to '=='
> 
> I assume I'm not supposed to forcibly change User-Name, so what 
> attribute would I set to return the correct username to the NAS? 
> I know there is a run-time variable %(reply:User-Name}, would I 
> need to somehow update it with the correct value for User-Name 
> instead?

Yes, by simply adding the User-Name = XXX to the reply items (that is to say
not on the first line). Try something like this:

DEFAULT         Realm == "test", Autz-Type := sql-test
	User-Name=`%{User-Name}`

HTH,
Thibault






More information about the Freeradius-Users mailing list