diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-03-17 14:33:06 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-04-16 11:03:47 -0400 |
commit | 270292f70b884cfedc712ad4c4ebdc542cd233a5 (patch) | |
tree | 98b153c677eb187d8f45641c6122a1bef8d48139 /ipaserver | |
parent | 017913a613e197b03e189ac93965a843ed6a9299 (diff) | |
download | freeipa-270292f70b884cfedc712ad4c4ebdc542cd233a5.tar.gz freeipa-270292f70b884cfedc712ad4c4ebdc542cd233a5.tar.xz freeipa-270292f70b884cfedc712ad4c4ebdc542cd233a5.zip |
Configure the CRL URI in dogtag.
Also print out a restart message after applying the custom subject.
It takes a while to restart dogtag and this lets the user know things
are moving forward.
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/cainstance.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index aedee8cfb..f31bdc6d2 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -976,7 +976,6 @@ class CAInstance(service.Service): pent = pwd.getpwnam(self.pki_user) os.chown(publishdir, pent.pw_uid, pent.pw_gid ) - # Enable file publishing, disable LDAP installutils.set_directive(caconfig, 'ca.publish.enable', 'true', quotes=False, separator='=') installutils.set_directive(caconfig, 'ca.publish.ldappublish.enable', 'false', quotes=False, separator='=') @@ -1007,6 +1006,9 @@ class CAInstance(service.Service): installutils.set_directive(caconfig, 'ca.publish.rule.instance.LdapUserCertRule.enable', 'false', quotes=False, separator='=') installutils.set_directive(caconfig, 'ca.publish.rule.instance.LdapXCertRule.enable', 'false', quotes=False, separator='=') + # Fix the CRL URI in the profile + installutils.set_directive('/var/lib/%s/profiles/ca/caIPAserviceCert.cfg' % PKI_INSTANCE_NAME, 'policyset.serverCertSet.9.default.params.crlDistPointsPointName_0', 'https://%s/ipa/crl/MasterCRL.bin' % self.host_name, quotes=False, separator='=') + ipautil.run(["/sbin/restorecon", publishdir]) def __setup_selinux(self): @@ -1032,6 +1034,7 @@ class CAInstance(service.Service): # format. We need to update that template with our base subject if installutils.update_file("/var/lib/%s/profiles/ca/caIPAserviceCert.cfg" % PKI_INSTANCE_NAME, 'OU=pki-ipa, O=IPA', self.subject_base): print "Updating subject_base in CA template failed" + self.print_msg("restarting certificate server") self.__restart_instance() def uninstall(self): |