mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
20.22.2008 03e2f3ec702df46c01c9a370a1072104c179e228
refs
author jvergara <jvergara@localhost>
Wednesday, February 20, 2008 10:22 +0100
committer jvergara <jvergara@localhost>
Wednesday, February 20, 2008 10:22 +0100
commit03e2f3ec702df46c01c9a370a1072104c179e228
tree 11a1e029e6e63cef6cf2080f53a17fa5d6627d01 tree | zip | gz
parent 2184755edaf0785918ed03aabc991b7e3a9f6751 view | diff
Fix for issue 2962 (Setup should allow non-secure replication port while LDAP access is SSL-enabled)

I was not able to reproduce the issue as it is described but discussing with the QA team we decided that it would be worth to do the following improvements:

1. If we cannot contact on one of the ports of a server that is registered in the ADS we must try to connect to the other ports.

2. We should try to connect to the port specified by the user in the setup (when specifying the server that we want to configure replication with). This also applies to the dsreplication utility.

Beside the two improvements above, I updated the code so that the progress messages use the port specified by the user to identify the OpenDS instances.

Without these changes (if security is configured) the user can be confused since we refer to secure ports (even if (s)he specified the regular LDAP port) and we ask the user to accept certificates.

Concerning the implementation, basically I added a class called PreferredConnection that is used to describe the LDAP URL and connection specified by the user. The objects are passed to the TopologyCache and the TopologyCache passes them to ServerLoader which is the class that creates the connection to the servers to read their configuration.
8 files modified
1 files added
630 ■■■■■ changed files
opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 94 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCache.java 31 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/PreferredConnection.java 147 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java 121 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 101 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java 4 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Application.java 9 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 121 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 2 ●●● diff | view | raw | blame | history