Hello Christophe.
On Feb 7, 4:56pm, Christophe Wolfhugel wrote:
> Subject: (RADIATOR) User definable variables/macros
> 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}.
After some discussion, we have decided that we like this idea very much, and it
fits in with some other directions that we want to pursue too. So we have added
the code for the next release. We have taken the liberty of changing your specs
a bit, but the idea is the same:
ON the command line you can have:
var1=value1 var2=value2
or in the config file:
DefineGlobalVar var1 value1
DefineGlobalVar var2 value2
And you can acces the value with
%{GlobalVar:var1} or
%{GlobalVar:var2}
Christophe, if you want an early release of the affected modules for testing,
please let me know.
Cheers.
>
> 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
> ...
>
> --
> Christophe Wolfhugel -+- [EMAIL PROTECTED] -+- France Telecom Oleane
>
> ===
> Archive at http://www.thesite.com.au/~radiator/
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Christophe Wolfhugel
--
Mike McCauley [EMAIL PROTECTED]
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au
Phone +61 3 9598-0985 Fax +61 3 9598-0955
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.