I've converted the diff attached to #5587 by Timo Aaltonen. Works for me, ACK.
https://fedorahosted.org/freeipa/ticket/5587 -- David Kupka
From 38e1128f5037d5019384197eccd6bcbb8bf5e7d1 Mon Sep 17 00:00:00 2001 From: Timo Aaltonen <tjaal...@ubuntu.com> Date: Tue, 19 Jan 2016 12:43:18 +0100 Subject: [PATCH] Use HTTPD_USER in dogtaginstance.py https://fedorahosted.org/freeipa/ticket/5587 --- ipaserver/install/dogtaginstance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 193423d7e09cec17a82d4f5da2ed6c43accf1c0c..5c2b28202329240e264e0b0a6149308ee208e8fa 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -34,6 +34,7 @@ from ipalib import errors from ipaplatform import services from ipaplatform.paths import paths +from ipaplatform.constants import constants from ipapython import certmonger from ipapython import ipaldap from ipapython import ipautil @@ -45,7 +46,7 @@ from ipaserver.install.installutils import stopped_service from ipapython.ipa_log_manager import log_mgr PKI_USER = "pkiuser" - +HTTPD_USER = constants.HTTPD_USER def get_security_domain(): """ @@ -87,7 +88,7 @@ def export_kra_agent_pem(): "--client-cert", filename] ipautil.run(args) - pent = pwd.getpwnam("apache") + pent = pwd.getpwnam(HTTPD_USER) os.chown(filename, 0, pent.pw_gid) os.chmod(filename, 0o440) -- 2.5.0
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code