add realm to user based on NAS-IP
Alexander Papenburg
freeradius at papenb.org
Wed Apr 11 15:32:57 CEST 2007
Arran Cudbard-Bell wrote:
> 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.
>
Yippiieee,
the request has been sent through to the home-server. Still need to work
on the username but i don't expect
big problems with that.
Thanks to both of you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070411/8371b37c/attachment.html>
More information about the Freeradius-Users
mailing list