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

david_page
31.55.2007 894bcfabe2aac051adc47d9a2c6b2fcb7421c9d1
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
commit894bcfabe2aac051adc47d9a2c6b2fcb7421c9d1
tree 3d35d013a7e8dfef94d17c61f067e0a4deea633b tree | zip | gz
parent d78588ea83870e5468c9cc6ee8f9767085b6da98 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
opends/src/ads/org/opends/admin/ads/ADSContext.java 126 ●●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 20 ●●●●● diff | view | raw | blame | history