Author: rmeggins
Update of /cvs/dirsec/console/src/com/netscape/management/client/util
In directory
cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10703/console/src/com/netscape/management/client/util
Modified Files:
ClassLoaderUtil.java
Log Message:
Resolves: bug 430364
Bug Description: setup-ds-admin.pl does not correctly set the admin server ip address
Reviewed by: nkinder (Thanks!)
Fix Description: If the admin server advertises its IP address in its cn=config
nsServerAddress, the console will attempt to use the address instead of hostname (which
will break https, btw). If the address is set to 0.0.0.0, clients cannot use this, so
must fall back on the hostname.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no
Index: ClassLoaderUtil.java
===================================================================
RCS file:
/cvs/dirsec/console/src/com/netscape/management/client/util/ClassLoaderUtil.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ClassLoaderUtil.java 15 Jul 2008 17:26:59 -0000 1.3
+++ ClassLoaderUtil.java 29 Jan 2009 21:24:00 -0000 1.4
@@ -365,8 +365,9 @@
* nsserveraddress might not be defined, which means that the
* admin server should listen on all interfaces rather than on
* a specific one. Read serverhostname from the SIE entry.
+ * admin server uses 0.0.0.0 to mean listen on all interfaces
*/
- if (sHost == null || sHost.trim().length() == 0) {
+ if ((sHost == null) || (sHost.trim().length() == 0) ||
sHost.equals("0.0.0.0")) {
LDAPEntry sieEntry = readEntry(ldc, sLocation, new String[]
{"serverhostname"});
if (sieEntry == null) {
throw new LDAPException(