diff options
author | Timo Aaltonen <tjaalton@debian.org> | 2016-03-18 12:22:33 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-03-23 13:32:55 +0100 |
commit | 2a2d63669d740396eabc6f46906b8625f001ad3c (patch) | |
tree | 08688e009a46057e86f6198d42ced3289d00a23c /install/oddjob | |
parent | d58cd04e8a618b0bf33d36099f782149c93dbd33 (diff) | |
download | freeipa-2a2d63669d740396eabc6f46906b8625f001ad3c.tar.gz freeipa-2a2d63669d740396eabc6f46906b8625f001ad3c.tar.xz freeipa-2a2d63669d740396eabc6f46906b8625f001ad3c.zip |
ipaplatform: Move remaining user/group constants to ipaplatform.constants.
Use ipaplatform.constants in every corner instead of importing other bits or calling
some platform specific things, and remove most of the remaining hardcoded uid's.
https://fedorahosted.org/freeipa/ticket/5343
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'install/oddjob')
-rwxr-xr-x | install/oddjob/com.redhat.idm.trust-fetch-domains | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/oddjob/com.redhat.idm.trust-fetch-domains b/install/oddjob/com.redhat.idm.trust-fetch-domains index 6e8bfc6c8..7c70c41d5 100755 --- a/install/oddjob/com.redhat.idm.trust-fetch-domains +++ b/install/oddjob/com.redhat.idm.trust-fetch-domains @@ -8,6 +8,7 @@ from ipapython.dn import DN from ipalib.config import Env from ipalib.constants import DEFAULT_CONFIG from ipapython.ipautil import kinit_keytab +from ipaplatform.constants import constants import sys import os import pwd @@ -31,7 +32,7 @@ def retrieve_keytab(api, ccache_name, oneway_keytab_name, oneway_principal): raiseonerr=False) # Make sure SSSD is able to read the keytab try: - sssd = pwd.getpwnam('sssd') + sssd = pwd.getpwnam(constants.SSSD_USER) os.chown(oneway_keytab_name, sssd[2], sssd[3]) except KeyError as e: # If user 'sssd' does not exist, we don't need to chown from root to sssd |