custom variable in config files
Tariq Rashid
tariq.rashid at uk.easynet.net
Tue Sep 13 17:33:44 CEST 2005
ok - i've worked out how to do this wityh {config:var_name} where var_name can be declared in radiusd.conf or an included file.
the %{config:var_name} can be used in a users file easily - in the reply attibutes, in the password condition test too .. but not in the user name...
so this works ...
# local test user for monitoring and diagnostics
test1 at proxyradius} User-Password == "test1.proxyradius.%{config:easynet_site}"
Reply-Message = "hello from the proxyradius layer %{config:easynet_site}"
but this doesn't ...
# local test user for monitoring and diagnostics
test1 at proxyradius.%{config:easynet_site} User-Password == "test1.proxyradius.%{config:easynet_site}"
Reply-Message = "hello from the proxyradius layer %{config:easynet_site}"
any ideas? i'm using version 1.0.2 on debian 3.1
tariq rashid
-----Original Message-----
From: freeradius-users-bounces at lists.freeradius.org
[mailto:freeradius-users-bounces at lists.freeradius.org]On Behalf Of Tariq
Rashid
Sent: 13 September 2005 16:10
To: FreeRadius users mailing list
Subject: custom variable in config files
hi - is it possible for me to declare a variable in one inlcuded config file, which is then visible in all the config files?
in order to keep the config file as simple as possible, i want to take out the site/server dependent portion into a variable. so at each different site/server i would have an included file with a variable "location=london" or "location=paris" and then this is visible in all other config files eg
users:
test@${location} .... etc
clients.conf
shortname = abc.def.${location}
is this possible?
tariq
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list