add realm to user based on NAS-IP

Arran Cudbard-Bell A.Cudbard-Bell at
Wed Apr 11 15:09:27 CEST 2007

Alan DeKok wrote:
> Alexander Papenburg wrote:
>> Okay I tested both ways:
>> 1st with suffix disabled in authorize section of radiusd.conf and:
>> DEFAULT NAS-IP-Address ==, Proxy-To-Realm := "realm"
>>        User-Name = "%{User-Name}@realm"
>   In the "users" file?  That sets the User-Name used in the reply, not
> the one being sent to the home server.
>> 2nd with suffix enabled and:
>> DEFAULT NAS-IP-Address ==
>>        User-Name = "%{User-Name}@realm"

DEFAULT NAS-IP-Address ==, Proxy-To-Realm := "realm"

Ah yes, still the top entry should have worked, username would have to 
be rewritten in hints file.

Or with attr_rewrite.

Arran Cudbard-Bell (ac221 at
Authentication Authorisation & Accounting Officer
Infrastructure Services | ENG1 FF08

More information about the Freeradius-Users mailing list