Re: (RADIATOR) Problems with GlobalVars in client handler

2003-07-09 Thread Hugh Irvine
Hello Chris -

I have copied this to Mike (who is away at the moment), but I doubt 
that it can be done.

regards

Hugh

On Wednesday, Jul 9, 2003, at 12:42 Australia/Melbourne, Chris Myers 
wrote:

Hi Hugh,

Radiator doesn't seem to like
Client %{GlobalVar:name}
though seems to work fine in other places.
Could this be fixed?

Here is a sample config and logs

---test.cfg---
LogDir  /usr/local/radiator/logs
DbDir   /usr/local/radiator/
Trace   6
LogFile %L/%{GlobalVar:ServerLog}
Client %{GlobalVar:RemoteClient}
Secret X
Identifier dialin
#DupInterval 10
/Client
Handler Client-Identifier=dialin
AuthBy RADIUS
Retries 1
RetryTimeout 4
FailureBackoffTime 10
Host %{GlobalVar:LocalServer}
Secret X
AuthPort 1651
AcctPort 1652
/Host
/AuthBy
/Handler

bash# radiusd -pid_file /tmp/test_radius.pid -config_file 
conf/test.cfg RemoteClient=60.60.60.60 LocalServer=10.10.10.10 
ServerLog=test.log

---Logfile--
Wed Jul  9 12:34:00 2003: ERR: Could not resolve an address for Client 
%{GlobalVar:RemoteClient}
Wed Jul  9 12:34:00 2003: DEBUG: Finished reading configuration file 
'conf/test.cfg'
Wed Jul  9 12:34:00 2003: DEBUG: Reading dictionary file 
'/usr/local/radiator//dictionary'
Wed Jul  9 12:34:00 2003: DEBUG: Creating authentication port 
0.0.0.0:1645
Wed Jul  9 12:34:00 2003: DEBUG: Creating accounting port 0.0.0.0:1646
Wed Jul  9 12:34:00 2003: NOTICE: Server started: Radiator 3.6 on XXX


Cheers,
Chris
--
+Chris Myers ~ [EMAIL PROTECTED]
. Information Technology Services - Software Infrastructure
. Ph: +61 7 3365 4017 - Mobile: 0413-009-482 - Room: 42-412
. The Prentice Building - The University of Queensland 4072
. http://www.uq.edu.au/~uqcmyers - http://www.its.uq.edu.au
+  http://www.mpc.org.au/
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.


(RADIATOR) Problems with GlobalVars in client handler

2003-07-08 Thread Chris Myers
Hi Hugh,

Radiator doesn't seem to like
Client %{GlobalVar:name}
though seems to work fine in other places.
Could this be fixed?

Here is a sample config and logs

---test.cfg---
LogDir  /usr/local/radiator/logs
DbDir   /usr/local/radiator/
Trace   6
LogFile %L/%{GlobalVar:ServerLog}
Client %{GlobalVar:RemoteClient}
Secret X
Identifier dialin
#DupInterval 10
/Client
Handler Client-Identifier=dialin
AuthBy RADIUS
Retries 1
RetryTimeout 4
FailureBackoffTime 10
Host %{GlobalVar:LocalServer}
Secret X
AuthPort 1651
AcctPort 1652
/Host
/AuthBy
/Handler

bash# radiusd -pid_file /tmp/test_radius.pid -config_file conf/test.cfg 
RemoteClient=60.60.60.60 LocalServer=10.10.10.10 ServerLog=test.log

---Logfile--
Wed Jul  9 12:34:00 2003: ERR: Could not resolve an address for Client 
%{GlobalVar:RemoteClient}
Wed Jul  9 12:34:00 2003: DEBUG: Finished reading configuration file 
'conf/test.cfg'
Wed Jul  9 12:34:00 2003: DEBUG: Reading dictionary file 
'/usr/local/radiator//dictionary'
Wed Jul  9 12:34:00 2003: DEBUG: Creating authentication port 0.0.0.0:1645
Wed Jul  9 12:34:00 2003: DEBUG: Creating accounting port 0.0.0.0:1646
Wed Jul  9 12:34:00 2003: NOTICE: Server started: Radiator 3.6 on XXX


Cheers,
Chris
--
+Chris Myers ~ [EMAIL PROTECTED]
. Information Technology Services - Software Infrastructure
. Ph: +61 7 3365 4017 - Mobile: 0413-009-482 - Room: 42-412
. The Prentice Building - The University of Queensland 4072
. http://www.uq.edu.au/~uqcmyers - http://www.its.uq.edu.au
+  http://www.mpc.org.au/
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.