From 87fd6b473eb3490ffc17f7a385ba5acb7ceb9fb0 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Thu, 26 Mar 2015 23:24:10 -0400 Subject: Add pkispawn config option for ldap profiles Add the `pki_profiles_in_ldap' pkispawn config to control whether profiles are stored on the filesystem (old behaviour) or LDAP (new behaviour). The default is file-based profiles. --- base/server/python/pki/server/deployment/pkiparser.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/server/python') diff --git a/base/server/python/pki/server/deployment/pkiparser.py b/base/server/python/pki/server/deployment/pkiparser.py index 6fb9e987d..e37b0e4a5 100644 --- a/base/server/python/pki/server/deployment/pkiparser.py +++ b/base/server/python/pki/server/deployment/pkiparser.py @@ -1227,6 +1227,12 @@ class PKIConfigParser: "restart" + " " + \ "pki-tomcatd" + "@" + \ self.mdict['pki_instance_name'] + "." + "service" + + if config.str2bool(self.mdict['pki_profiles_in_ldap']): + self.mdict['PKI_PROFILE_SUBSYSTEM_SLOT'] = 'LDAPProfileSubsystem' + else: + self.mdict['PKI_PROFILE_SUBSYSTEM_SLOT'] = 'ProfileSubsystem' + except OSError as exc: config.pki_log.error(log.PKI_OSERROR_1, exc, extra=config.PKI_INDENTATION_LEVEL_2) -- cgit