diff options
author | Ade Lee <alee@redhat.com> | 2015-04-16 22:26:03 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2015-04-22 00:01:47 -0400 |
commit | 2c171ca8fafc1d688b9b965d1255a81aba6aa7ee (patch) | |
tree | 52ba5ee52e94789e7d9aebe690ee5e9e96a4f1bd /base/server/cms/src/com/netscape/cms | |
parent | 922e237279fcf8ce9827f0e3cbed904758ad5123 (diff) | |
download | pki-2c171ca8fafc1d688b9b965d1255a81aba6aa7ee.tar.gz pki-2c171ca8fafc1d688b9b965d1255a81aba6aa7ee.tar.xz pki-2c171ca8fafc1d688b9b965d1255a81aba6aa7ee.zip |
Add nuxwdog functionality to Dogtag
This is the first of several commits. This adds a LifecycleListener
to call init() on the nuxwdog client before any connectors or webapps
start up, and call sendEndInit() once initialization completes.
Code is also added to prompt for and test required passwords on startup.
All that is required to use nuxwdog is to start the server using nuxwdog.
An environment variable will be set that will trigger creation of the
NuxwdogPasswordStore. We expect tags for the required passwords to be in
cms.passwordList
Diffstat (limited to 'base/server/cms/src/com/netscape/cms')
-rw-r--r-- | base/server/cms/src/com/netscape/cms/servlet/csadmin/GetConfigEntries.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/server/cms/src/com/netscape/cms/servlet/csadmin/GetConfigEntries.java b/base/server/cms/src/com/netscape/cms/servlet/csadmin/GetConfigEntries.java index dcb8bdf8a..8250b3b74 100644 --- a/base/server/cms/src/com/netscape/cms/servlet/csadmin/GetConfigEntries.java +++ b/base/server/cms/src/com/netscape/cms/servlet/csadmin/GetConfigEntries.java @@ -219,14 +219,14 @@ public class GetConfigEntries extends CMSServlet { protected void renderResult(CMSRequest cmsReq) throws IOException {// do nothing, ie, it will not return the default javascript. } - private String getLDAPPassword() { + private String getLDAPPassword() throws EBaseException { IPasswordStore pwdStore = CMS.getPasswordStore(); - return pwdStore.getPassword("internaldb"); + return pwdStore.getPassword("internaldb", 0); } - private String getReplicationPassword() { + private String getReplicationPassword() throws EBaseException { IPasswordStore pwdStore = CMS.getPasswordStore(); - return pwdStore.getPassword("replicationdb"); + return pwdStore.getPassword("replicationdb", 0); } } |