diff options
author | Timo Aaltonen <tjaalton@ubuntu.com> | 2016-01-19 12:43:18 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2016-01-27 14:58:28 +0100 |
commit | 67c367d0db194d9afa56ecda34dafb46758d99b5 (patch) | |
tree | 01f4e9e3bd20fccc8525c4bb0c116a5b1b19b01a /ipaserver | |
parent | eaafeddf769c25bd44b490ae18ffb58e97df4963 (diff) | |
download | freeipa-67c367d0db194d9afa56ecda34dafb46758d99b5.tar.gz freeipa-67c367d0db194d9afa56ecda34dafb46758d99b5.tar.xz freeipa-67c367d0db194d9afa56ecda34dafb46758d99b5.zip |
Use HTTPD_USER in dogtaginstance.py
https://fedorahosted.org/freeipa/ticket/5587
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/dogtaginstance.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 193423d7e..5c2b28202 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) |