add a realm to a User-Name if no realm

Lewis Bergman lbergman at wtxs.net
Thu Oct 6 20:15:14 CEST 2005


Alan DeKok said:
> "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"
You, my friend, are wonderful. Please tell me how I might be able to show
my gratitude.

-- 
Lewis Bergman
Texas Communications
4309 Maple ST.
Abilene, TX 79602
325-691-3301



More information about the Freeradius-Users mailing list