add realm to user based on NAS-IP
    Arran Cudbard-Bell 
    A.Cudbard-Bell at sussex.ac.uk
       
    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 == 10.0.0.1, 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 == 10.0.0.1
>>        User-Name = "%{User-Name}@realm"
>>
DEFAULT NAS-IP-Address == 10.0.0.1, 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 sussex.ac.uk)
Authentication Authorisation & Accounting Officer
Infrastructure Services | ENG1 FF08
EXT:3900
    
    
More information about the Freeradius-Users
mailing list