add realm to user based on NAS-IP
Hi all, i wonder if it is possible to add a realm to a username based on the NAS-IP the request come from. For instance: - user "abc" logs on router 10.0.0.1 - router 10.0.0.1 asks a freeradius proxy for user "abc" - freeradius-proxy recognize the ip and add "@realm" to the username and proxy the request to another freeradius-server based on "realm"-entry in proxy.conf Unfortunatly I found many "solutions" in the past 2 hours (like proxy-to-realm, attr_rewrite, hints...), I cant't decide which is the right one for me. %) So help would be much appreciated. Thanks in advance Alexander
Hello, Alexander! You wrote on Sat, 31 Mar 2007 18:11:46 +0200: AP> i wonder if it is possible to add a realm to a username based on the AP> NAS-IP the request come from. AP> For instance: AP> - user "abc" logs on router 10.0.0.1 AP> - router 10.0.0.1 asks a freeradius proxy for user "abc" AP> - freeradius-proxy recognize the ip and add "@realm" to the username AP> and AP> proxy the request to another freeradius-server based on AP> "realm"-entry AP> in proxy.conf I use following method for adding realm based on NAS-Identifier: user "abc" transforms to "abc@NAS-Identifier". This is made in hints: DEFAULT Suffix !~ "@." Realm = "%{NAS-Identifier:-unknown}" With best regards, Alexander V. Klepikov. E-mail: klepikov_a@up.ua
participants (2)
-
Alexander Papenburg -
Alexander V. Klepikov