Setting a realm in the User-Name based on Client-IP-Address

Kevin Bonner keb at pa.net
Thu Jan 25 00:15:30 CET 2007


On Wednesday 24 January 2007 16:59, Jason E. Murray wrote:
> My question is there a better way to do this, this seems a bit kludgy.
>
> Using FreeRadius 1.1.4
>
> Thanks in advance,

Use the hints file like below, then configure freeradius as if the realm were 
included in the original request.

== hints ==
DEFAULT User-Name !~ "@", Client-IP-Address == A.B.C.D
    User-Name := "%{User-Name}@rts"
== hints ==

Kevin Bonner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070124/8b5e6930/attachment.pgp>


More information about the Freeradius-Users mailing list