custom variable in config files

Tariq Rashid tariq.rashid at uk.easynet.net
Thu Sep 15 17:33:12 CEST 2005



i'm running into the same problem again in the clients.conf file where variables are not visible in the "host =" entries.

i'd like to do something like ...

	realm abc.def {
	        type            = radius
	        authhost        = `%{config:network_address}`.126:1812
	        accthost        = `%{config:network_address}`.126:1813
	        secret          = llustreamkey
	        nostrip
	}  

where network_address is defined in a file included in radius.cfg (which works for the users file shown below).

any ideas? can i force the clients.conf to be xlat'ed?

tariq


-----Original Message-----
From: freeradius-users-bounces at lists.freeradius.org
[mailto:freeradius-users-bounces at lists.freeradius.org]On Behalf Of
Nicolas Baradakis
Sent: 13 September 2005 18:08
To: FreeRadius users mailing list
Subject: Re: custom variable in config files


Tariq Rashid wrote:

> 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

It doesn't work because the name of the entry isn't xlat'ed in
src/main/files.c. Perhaps this syntax would work:

DEFAULT User-Name = "test1 at proxyradius.%{config:easynet_site}", User-Password == "test1.proxyradius.%{config:easynet_site}"
	Reply-Message = "hello from the proxyradius layer %{config:easynet_site}"

-- 
Nicolas Baradakis
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list