diff options
author | Ade Lee <alee@redhat.com> | 2016-04-15 14:36:00 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2016-04-15 15:06:13 -0400 |
commit | 0c5fb1e398510391187054a465c6460042bfc0b2 (patch) | |
tree | 4bd9e90039b0732d3f25f2760b59a7047a89baf9 /base/server/cms/src/org/dogtagpki/server | |
parent | 88e963d55bdf4cb9799ef665a72f8855fc00c4da (diff) | |
download | pki-0c5fb1e398510391187054a465c6460042bfc0b2.tar.gz pki-0c5fb1e398510391187054a465c6460042bfc0b2.tar.xz pki-0c5fb1e398510391187054a465c6460042bfc0b2.zip |
Add script to enable USN plugin
New authority monitor code requires the USN plugin to be
enabled in the database to ensure that the entryUSN attribute
is added to authority entries.
In the case where this plugin was disabled, accessing this
attribute resulted in a null pointer exception whch prevented server
startup.
The code has been changed so as not to throw a null pointer exception
on startup if the entryusn is not present, and also to call an LDIF
to enable the plugin when a subsystem is configured through pkispawn.
Diffstat (limited to 'base/server/cms/src/org/dogtagpki/server')
-rw-r--r-- | base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java b/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java index d3410bcb4..a96575d06 100644 --- a/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java +++ b/base/server/cms/src/org/dogtagpki/server/rest/SystemConfigService.java @@ -753,6 +753,7 @@ public class SystemConfigService extends PKIService implements SystemConfigResou psStore.commit(false); if (!data.getStepTwo()) { + ConfigurationUtils.enableUSNPlugin(); ConfigurationUtils.populateDB(); cs.putString("preop.internaldb.replicationpwd", replicationPassword); |