Hello Christophe -
On Tue, 08 Feb 2000, Christophe Wolfhugel wrote:
> I don't believe that Radiator yet supports user defined variables (or
> macros, well). Has someone already done that ? Would the Radiator team
> include this in future distributions ?
>
> The syntax could be like :
>
> - on the command line: -D macro=value -D macro=value
> - in the config file: define macro value
> - for the substitution : %{Zmacro}.
>
> The reason ? I have several Radiator servers who use nearly the same
> (long) configuration file and I would like to add some dynamic
> stuff like :
>
> Pidfile /var/run/radiusd-%{Zldap}.pid
> <Realm one-of-many>
> <AuthBy LDAP2>
> Host %{Zldap}.oleane.net
> </AuthBy>
> </Realm>
>
> and invoque Radiator as
> radiusd -bind_address 127.0.0.1 -config_file same-file -D ldap=ldap1
> radiusd -bind_address 127.0.0.1 -config_file same-file -D ldap=ldap2
> ...
Yes, this has come up a number of times, however we have up until now always
decided to keep things as simple as possible in the interests of reliability
and ease of support.
That said however, Radiator 2.15 has a new Hook type - a StartupHook - that
runs once at run time (or restart). The idea here is that people such as
yourself who would like to add special handling or particular features will be
able to do so using this facility.
On the topic of your configuration file - there is a way of simplifiying lots
of AuthBy's like this:
# define AuthBy's once - each with a different Identifier
<AuthBy LDAP2>
Identifier ldap.server
Host ldap.oleane.net
</AuthBy>
# use the AuthBy Identifier form in Realms and Handlers
<Realm one-of-many>
AuthBy ldap.server
</Realm>
<Realm another-of-many>
AuthBy ldap.server
</Realm>
....
hth
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.