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

jvergara
20.22.2008 6b91643447398f13e01a4e02f8431e5263fc9bff
refs
author jvergara <jvergara@localhost>
Wednesday, February 20, 2008 10:22 +0100
committer jvergara <jvergara@localhost>
Wednesday, February 20, 2008 10:22 +0100
commit6b91643447398f13e01a4e02f8431e5263fc9bff
tree f9594e49f78a5c42465e94de2e952cbf9c3610ff tree | zip | gz
parent 58a4b916a28cd70ab22d6f9483b88f52bbaae6b8 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
opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 94 ●●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/TopologyCache.java 31 ●●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/util/PreferredConnection.java 147 ●●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/util/ServerLoader.java 121 ●●●● diff | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 101 ●●●● diff | view | raw | blame | history
opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java 4 ●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Application.java 9 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 121 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 2 ●●● diff | view | raw | blame | history