Adding default Realms in users without Realms

joaocdc at gmail.com joaocdc at gmail.com
Wed Aug 24 22:44:21 CEST 2011


OK Thanks for the tips, helped me a lot.

2011/8/24 Arran Cudbard-Bell <a.cudbardb at freeradius.org>:
>
> On 24 Aug 2011, at 20:42, joaocdc at gmail.com wrote:
>
>> Hello everybody I have a doubt and I'm not finding answers on the Internet.
>>
>> I have a freeradius server operating normally, it is a proxy for
>> several Realms, with each Realm leads the user to a different
>> authentication database, so far okay.
>>
>> What I need now is to get users coming to the radius without realm,
>> and add a default realm. I need to do this early on in the
>> authentication processing, so that the other conditions that rely on
>> authentication of the existence of a realm can function correctly.
>>
>
> If you mean just adding a string onto the username then yes...
>
> if(User-Name !~ /username with realm... etc.../){
>        update request {
>                User-Name := "%{User-Name}@realm"
>        }
> }
>
> Arran Cudbard-Bell
> a.cudbardb at freeradius.org
>
> RADIUS - Half the complexity of Diameter
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>



-- 
João Paulo de Lima Barbosa




More information about the Freeradius-Users mailing list