mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use HTTPD_USER in dogtaginstance.py
https://fedorahosted.org/freeipa/ticket/5587 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
committed by
Tomas Babej
parent
eaafeddf76
commit
67c367d0db
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user