Adding default Realms in users without Realms
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Wed Aug 24 20:58:41 CEST 2011
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
More information about the Freeradius-Users
mailing list