add a realm to a User-Name if no realm

Alan DeKok aland at ox.org
Thu Oct 6 19:30:37 CEST 2005


"Lewis Bergman" <lbergman at wtxs.net> wrote:
> I was hoping to look for a specific %{NAS-Identifier} and based on that
> AND the fact that a user does not have an "@" in the username, add the
> realm.

  Try using "hints"

DEFAULT	    User-Name !~ ".*@", NAS-Identifier == "foo"
	    User-Name := "%{User-name}@realm"

  Alan DeKok.



More information about the Freeradius-Users mailing list