[Suppress Attribute in Access Accept]

Alan DeKok aland at deployingradius.com
Thu Jan 28 17:40:07 CET 2010


Thomas Fagart wrote:
> Oups sorry for the previsous non terminated mail
> 
> As I was saying, I would like to supppress attributes in post auth phase,
> I know I can do this with attrs, but I was wondering wether this is
> possible in users file.

  No.  The "users" file has a *limited* set of functionality.

  If you want to do more, see "man unlang".

> By reading man unlang, I should be able to do this with

  No.  See "man users" for the documentation for the "users" file.

> So if I want to remove the attribute User-Name, the following line should
> match
> User-Name -= *,
> or
> User-Name !*,
> 
> Am I wrong ?

  Yes.  Use:

authorize {
	...
	update reply {
		User-Name -= *
	}
	...
}

  Alan DeKok.



More information about the Freeradius-Users mailing list