(RADIATOR) subsequent ClientListLDAP refresh attempt causes server shutdown

Alexander List alexlist at sbox.tu-graz.ac.at
Thu Mar 9 07:52:52 CST 2006


Hello,

I'm trying out a new configuration. For testing purposes, I've started a
Radiator instance that cannot connect to OpenLDAP and MySQL. Thus
ClientListLDAP, SessionDatabaseSQL and AccountingTable in an AuthBySQL
are not available and I expect to see the resulting errors. Again, this
is intentional.

Configuration is split into three chained files, one for configuration
common to all Radiator instances, one for configration to all
accounting/all authentication instances respectively, and one file for
each port we listen on. The most specific file (defining the port
number) is including the more general one (e.g. for all accounting
processes), that one in turn includes the "top" config file with
directives common to all processes, e.g. logging, definition of the
session database etc.

The goal is to be able to change things common to all processes in one
place instead of many.

Radiator is started with the most specific configuration file as an option:

host:~# radiusd -config_file /etc/radiator/radius-acct-1646.cfg -trace 4
-log_stdout
Thu Mar  9 14:41:56 2006: DEBUG: include
/etc/radiator/radius-acct-common.cfg
Thu Mar  9 14:41:56 2006: DEBUG: include /etc/radiator/radius-common.cfg
Thu Mar  9 14:41:57 2006: INFO: Connecting to localhost:389
Thu Mar  9 14:41:57 2006: ERR: Could not open LDAP connection to
localhost:389. Backing off for 60 seconds.
Thu Mar  9 14:41:57 2006: DEBUG: Creating Monitor port 0.0.0.0:9049
Thu Mar  9 14:41:57 2006: DEBUG: Finished reading configuration file
'/etc/radiator/radius-acct-1646.cfg'
Thu Mar  9 14:41:57 2006: DEBUG: Reading dictionary file
'/etc/radiator/dictionary'
Thu Mar  9 14:41:57 2006: DEBUG: Creating accounting port 0.0.0.0:1646
Thu Mar  9 14:41:57 2006: NOTICE: Server started: Radiator 3.14 on host
Thu Mar  9 14:42:57 2006: DEBUG: ClientListLDAP automatic refresh
Can't use an undefined value as an ARRAY reference at
/usr/share/perl5/Radius/ClientListLDAP.pm line 213.

The LDAP server defined in ClientListLDAP is not available, this is
intentional. No RADIUS requests are sent to Radiator.

After FailureBackoffTime (60 seconds) has passed, Radiator is trying
again to contact the LDAP server.

In the error example above

my @old_main_clients = @{$main::config->{Client}};

bombs out, because there is no "old" client list...


Alexander List

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list