summaryrefslogtreecommitdiffstats
path: root/base/ca
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2014-06-26 23:12:27 +0800
committerAde Lee <alee@redhat.com>2014-07-17 21:08:12 +0800
commit80c40916baf0b16ab37829f51fdf6a5a0833d407 (patch)
treedc18c8df08ca07fc3f123fdce56d1f9a0693da97 /base/ca
parentbebc70bbf17e69b01d4449b20515031120dec0d5 (diff)
downloadpki-80c40916baf0b16ab37829f51fdf6a5a0833d407.tar.gz
pki-80c40916baf0b16ab37829f51fdf6a5a0833d407.tar.xz
pki-80c40916baf0b16ab37829f51fdf6a5a0833d407.zip
Add ability to create database as subtree of existing tree
This patch adds the ability to create a subsystem that uses an existing subtree to create the internal basedn. This is useful for instance, for IPA which will use the original o=ipaca as the top level DN for a KRA, which will be situated at o=ipadrm, o=ipaca. The patch also allows such a system to be cloned, but not to setup the replication agreements, on the assumption that the data is already being replicated at the top-level DN or some higher level. The patch also contains some minor cleanups - removing unused imports and removal of an invalid reference in the python code. Ticket 1051
Diffstat (limited to 'base/ca')
-rw-r--r--base/ca/src/org/dogtagpki/server/ca/rest/CAInstallerService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/ca/src/org/dogtagpki/server/ca/rest/CAInstallerService.java b/base/ca/src/org/dogtagpki/server/ca/rest/CAInstallerService.java
index cc3c46585..bb823eece 100644
--- a/base/ca/src/org/dogtagpki/server/ca/rest/CAInstallerService.java
+++ b/base/ca/src/org/dogtagpki/server/ca/rest/CAInstallerService.java
@@ -40,7 +40,7 @@ public class CAInstallerService extends SystemConfigService {
super.finalizeConfiguration(request);
try {
- if (!request.getIsClone().equals("true")) {
+ if (!request.isClone()) {
ConfigurationUtils.updateNextRanges();
}
@@ -50,7 +50,7 @@ public class CAInstallerService extends SystemConfigService {
}
try {
- if (request.getIsClone().equals("true") && ConfigurationUtils.isSDHostDomainMaster(cs)) {
+ if (request.isClone() && ConfigurationUtils.isSDHostDomainMaster(cs)) {
// cloning a domain master CA, the clone is also master of its domain
cs.putString("securitydomain.host", CMS.getEEHost());
cs.putString("securitydomain.httpport", CMS.getEENonSSLPort());