diff options
Diffstat (limited to 'base/common')
-rw-r--r-- | base/common/python/pki/system.py | 20 | ||||
-rw-r--r-- | base/common/src/com/netscape/certsrv/system/SystemConfigResource.java | 8 |
2 files changed, 28 insertions, 0 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 46b1d4051..65ca32183 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -275,6 +275,26 @@ class SystemConfigClient(object): headers) return response.json() + def createUsers(self): + """ + Contacts the server and invokes the Java configuration REST API to + create subsystem users. + """ + headers = {'Content-type': 'application/json', + 'Accept': 'application/json'} + self.connection.post('/rest/installer/finalize', None, + headers) + + def configureSecurityDomain(self): + """ + Contacts the server and invokes the Java configuration REST API to + configure security domain. + """ + headers = {'Content-type': 'application/json', + 'Accept': 'application/json'} + response = self.connection.post('/rest/installer/finalize', None, + headers) + def finalize(self): """ Contacts the server and invokes the Java configuration REST API to diff --git a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java index 104a0af08..3ad8abf96 100644 --- a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java +++ b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java @@ -32,6 +32,14 @@ public interface SystemConfigResource { public ConfigurationResponse configure(ConfigurationRequest data) throws Exception; @POST + @Path("createUsers") + public void createUsers() throws Exception; + + @POST + @Path("configureSecurityDomain") + public void configureSecurityDomain() throws Exception; + + @POST @Path("finalize") public ConfigurationResponse finalizeConfiguration() throws Exception; } |