I am doing:
# match number ending in 123
DEFAULT Called-Station-Id =~ "^.*123$"
Realm = "realm1"
# otherwise make it realm2
DEFAULT
Realm = "realm2"
And _ALL_ are being assigned "realm1"
-Mike
On Tue, 27 Jan 2004, Alan DeKok wrote:
> Mike Sturdee <[EMAIL PROTECTED]> wrote:
> > I am trying to set the Realm attribute based on the Called-Station-Id.
> > Doesn't look to work in users (not done soon enough).
>
> The "users" file updates the reply, and the check items. The Realm
> is usually a property of the request list, so the "users" file can't
> add it there.
>
> > Does the hints file support regex comparisons?
>
> It supports attributes and operators, which includes regexes.
>
> > I am needing the realm set before radiusd reaches the authentication
> > / authorization modules.
>
> Uh... the "preprocess" module is in "authorize", and is the module
> which handles "hints".
>
> In the "hints" file, you should be able to do:
>
> DEFAULT Called-Station-Id =~ "foo.*bar"
> Realm = "foo"
>
> Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html