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

david_page
31.55.2007 e44b22c9b2453eb6028cc553838bdb06aa3d189a
refs
author david_page <david_page@localhost>
Friday, August 31, 2007 16:55 +0200
committer david_page <david_page@localhost>
Friday, August 31, 2007 16:55 +0200
commite44b22c9b2453eb6028cc553838bdb06aa3d189a
tree c592c89b67f47001f2681927b4e64ef287d603d9 tree | zip | gz
parent 407645b8549604cbffb9fcebf302c73886330e67 view | diff
Issue 466 partial

Follow-on to commit r2858. ADSContext#updateServer is called by Installer#updateADS (via registerOrUpdateServer) in the case the server entry already exists in ADS. With this commit, updateServer checks 'cn=instance keys,cn=admin data' for an entry with the instance key public-key certificate of the server being (re)registered (or otherwise updated and the instance-key certificate server property is supplied). If the entry exists, it is used. Otherwise, a new entry is created. The new routine ADSContext#registerInstanceKeyCertificate contains the code common to registerServer and updateServer.

Note that the updateServer is not fully tested since I cannot figure out how to re-register an existing instance (i.e., unregister, but not uninstall, an instance; then re-register the instance so the existing instance-key entry is reused).

M src/ads/org/opends/admin/ads/ServerDescriptor.java
M src/ads/org/opends/admin/ads/ADSContext.java
2 files modified
146 ■■■■■ changed files
opendj-sdk/opends/src/ads/org/opends/admin/ads/ADSContext.java 126 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 20 ●●●●● diff | view | raw | blame | history