2014-05-21 07:38:57 -05:00
|
|
|
# Authors:
|
|
|
|
# Tomas Babej <tbabej@redhat.com>
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014 Red Hat
|
|
|
|
# see file 'COPYING' for use and warranty information
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
'''
|
|
|
|
This base platform module exports default filesystem paths.
|
|
|
|
'''
|
2014-05-26 05:07:39 -05:00
|
|
|
|
2016-07-26 06:35:22 -05:00
|
|
|
import os
|
|
|
|
|
2014-06-17 04:45:43 -05:00
|
|
|
|
2014-05-29 07:47:17 -05:00
|
|
|
class BasePathNamespace(object):
|
|
|
|
BASH = "/bin/bash"
|
|
|
|
BIN_FALSE = "/bin/false"
|
2016-04-19 11:36:32 -05:00
|
|
|
BIN_HOSTNAMECTL = "/bin/hostnamectl"
|
2014-05-29 07:47:17 -05:00
|
|
|
LS = "/bin/ls"
|
|
|
|
SH = "/bin/sh"
|
|
|
|
SYSTEMCTL = "/bin/systemctl"
|
|
|
|
TAR = "/bin/tar"
|
|
|
|
BIN_TRUE = "/bin/true"
|
2014-06-17 04:45:43 -05:00
|
|
|
AUTOFS_LDAP_AUTH_CONF = "/etc/autofs_ldap_auth.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
ETC_DIRSRV = "/etc/dirsrv"
|
|
|
|
DS_KEYTAB = "/etc/dirsrv/ds.keytab"
|
|
|
|
ETC_DIRSRV_SLAPD_INSTANCE_TEMPLATE = "/etc/dirsrv/slapd-%s"
|
|
|
|
ETC_FEDORA_RELEASE = "/etc/fedora-release"
|
|
|
|
GROUP = "/etc/group"
|
|
|
|
ETC_HOSTNAME = "/etc/hostname"
|
|
|
|
HOSTS = "/etc/hosts"
|
|
|
|
ETC_HTTPD_DIR = "/etc/httpd"
|
|
|
|
HTTPD_ALIAS_DIR = "/etc/httpd/alias"
|
2014-06-17 04:45:43 -05:00
|
|
|
ALIAS_CACERT_ASC = "/etc/httpd/alias/cacert.asc"
|
2014-05-29 07:47:17 -05:00
|
|
|
ALIAS_PWDFILE_TXT = "/etc/httpd/alias/pwdfile.txt"
|
|
|
|
HTTPD_CONF_D_DIR = "/etc/httpd/conf.d/"
|
2015-06-23 10:01:00 -05:00
|
|
|
HTTPD_IPA_KDCPROXY_CONF = "/etc/ipa/kdcproxy/ipa-kdc-proxy.conf"
|
|
|
|
HTTPD_IPA_KDCPROXY_CONF_SYMLINK = "/etc/httpd/conf.d/ipa-kdc-proxy.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
HTTPD_IPA_PKI_PROXY_CONF = "/etc/httpd/conf.d/ipa-pki-proxy.conf"
|
|
|
|
HTTPD_IPA_REWRITE_CONF = "/etc/httpd/conf.d/ipa-rewrite.conf"
|
|
|
|
HTTPD_IPA_CONF = "/etc/httpd/conf.d/ipa.conf"
|
|
|
|
HTTPD_NSS_CONF = "/etc/httpd/conf.d/nss.conf"
|
|
|
|
HTTPD_SSL_CONF = "/etc/httpd/conf.d/ssl.conf"
|
|
|
|
IPA_KEYTAB = "/etc/httpd/conf/ipa.keytab"
|
|
|
|
HTTPD_PASSWORD_CONF = "/etc/httpd/conf/password.conf"
|
2014-06-17 04:45:43 -05:00
|
|
|
IDMAPD_CONF = "/etc/idmapd.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
ETC_IPA = "/etc/ipa"
|
2014-06-17 04:45:43 -05:00
|
|
|
CONNCHECK_CCACHE = "/etc/ipa/.conncheck_ccache"
|
|
|
|
IPA_DNS_CCACHE = "/etc/ipa/.dns_ccache"
|
|
|
|
IPA_DNS_UPDATE_TXT = "/etc/ipa/.dns_update.txt"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPA_CA_CRT = "/etc/ipa/ca.crt"
|
|
|
|
IPA_DEFAULT_CONF = "/etc/ipa/default.conf"
|
2014-10-20 15:00:16 -05:00
|
|
|
IPA_DNSKEYSYNCD_KEYTAB = "/etc/ipa/dnssec/ipa-dnskeysyncd.keytab"
|
|
|
|
IPA_ODS_EXPORTER_KEYTAB = "/etc/ipa/dnssec/ipa-ods-exporter.keytab"
|
|
|
|
DNSSEC_SOFTHSM2_CONF = "/etc/ipa/dnssec/softhsm2.conf"
|
|
|
|
DNSSEC_SOFTHSM_PIN_SO = "/etc/ipa/dnssec/softhsm_pin_so"
|
2014-09-18 09:28:59 -05:00
|
|
|
IPA_NSSDB_DIR = "/etc/ipa/nssdb"
|
2014-10-01 06:13:12 -05:00
|
|
|
IPA_NSSDB_PWDFILE_TXT = "/etc/ipa/nssdb/pwdfile.txt"
|
2016-05-27 09:12:31 -05:00
|
|
|
COMMON_KRB5_CONF_DIR = "/etc/krb5.conf.d/"
|
2014-05-29 07:47:17 -05:00
|
|
|
KRB5_CONF = "/etc/krb5.conf"
|
|
|
|
KRB5_KEYTAB = "/etc/krb5.keytab"
|
2014-06-17 04:45:43 -05:00
|
|
|
LDAP_CONF = "/etc/ldap.conf"
|
|
|
|
LIBNSS_LDAP_CONF = "/etc/libnss-ldap.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
NAMED_CONF = "/etc/named.conf"
|
2014-10-02 09:31:24 -05:00
|
|
|
NAMED_VAR_DIR = "/var/named"
|
2014-05-29 07:47:17 -05:00
|
|
|
NAMED_KEYTAB = "/etc/named.keytab"
|
|
|
|
NAMED_RFC1912_ZONES = "/etc/named.rfc1912.zones"
|
2014-10-02 07:55:10 -05:00
|
|
|
NAMED_ROOT_KEY = "/etc/named.root.key"
|
|
|
|
NAMED_BINDKEYS_FILE = "/etc/named.iscdlv.key"
|
|
|
|
NAMED_MANAGED_KEYS_DIR = "/var/named/dynamic"
|
2014-06-17 04:45:43 -05:00
|
|
|
NSLCD_CONF = "/etc/nslcd.conf"
|
|
|
|
NSS_LDAP_CONF = "/etc/nss_ldap.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
NSSWITCH_CONF = "/etc/nsswitch.conf"
|
|
|
|
NTP_CONF = "/etc/ntp.conf"
|
|
|
|
NTP_STEP_TICKERS = "/etc/ntp/step-tickers"
|
2014-10-20 15:00:16 -05:00
|
|
|
ETC_OPENDNSSEC_DIR = "/etc/opendnssec"
|
|
|
|
OPENDNSSEC_CONF_FILE = "/etc/opendnssec/conf.xml"
|
|
|
|
OPENDNSSEC_KASP_FILE = "/etc/opendnssec/kasp.xml"
|
2015-05-13 07:45:32 -05:00
|
|
|
OPENDNSSEC_ZONELIST_FILE = "/etc/opendnssec/zonelist.xml"
|
2014-05-29 07:47:17 -05:00
|
|
|
OPENLDAP_LDAP_CONF = "/etc/openldap/ldap.conf"
|
2014-06-17 04:45:43 -05:00
|
|
|
PAM_LDAP_CONF = "/etc/pam_ldap.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
PASSWD = "/etc/passwd"
|
2014-11-10 10:24:22 -06:00
|
|
|
SYSTEMWIDE_IPA_CA_CRT = "/etc/pki/ca-trust/source/anchors/ipa-ca.crt"
|
2014-06-12 10:20:19 -05:00
|
|
|
IPA_P11_KIT = "/etc/pki/ca-trust/source/ipa.p11-kit"
|
2014-05-29 07:47:17 -05:00
|
|
|
NSS_DB_DIR = "/etc/pki/nssdb"
|
|
|
|
PKI_TOMCAT = "/etc/pki/pki-tomcat"
|
2015-11-09 11:28:47 -06:00
|
|
|
PKI_TOMCAT_ALIAS_DIR = "/etc/pki/pki-tomcat/alias"
|
2014-05-29 07:47:17 -05:00
|
|
|
PKI_TOMCAT_PASSWORD_CONF = "/etc/pki/pki-tomcat/password.conf"
|
|
|
|
ETC_REDHAT_RELEASE = "/etc/redhat-release"
|
|
|
|
RESOLV_CONF = "/etc/resolv.conf"
|
|
|
|
SAMBA_KEYTAB = "/etc/samba/samba.keytab"
|
|
|
|
SMB_CONF = "/etc/samba/smb.conf"
|
|
|
|
LIMITS_CONF = "/etc/security/limits.conf"
|
|
|
|
SSH_CONFIG = "/etc/ssh/ssh_config"
|
|
|
|
SSHD_CONFIG = "/etc/ssh/sshd_config"
|
|
|
|
SSSD_CONF = "/etc/sssd/sssd.conf"
|
2014-06-17 04:45:43 -05:00
|
|
|
SSSD_CONF_BKP = "/etc/sssd/sssd.conf.bkp"
|
|
|
|
SSSD_CONF_DELETED = "/etc/sssd/sssd.conf.deleted"
|
2014-07-17 04:47:26 -05:00
|
|
|
ETC_SYSCONFIG_DIR = "/etc/sysconfig"
|
2014-05-29 07:47:17 -05:00
|
|
|
ETC_SYSCONFIG_AUTHCONFIG = "/etc/sysconfig/authconfig"
|
2014-06-17 04:45:43 -05:00
|
|
|
SYSCONFIG_AUTOFS = "/etc/sysconfig/autofs"
|
2014-05-29 07:47:17 -05:00
|
|
|
SYSCONFIG_DIRSRV = "/etc/sysconfig/dirsrv"
|
|
|
|
SYSCONFIG_DIRSRV_INSTANCE = "/etc/sysconfig/dirsrv-%s"
|
2014-06-17 04:45:43 -05:00
|
|
|
SYSCONFIG_DIRSRV_SYSTEMD = "/etc/sysconfig/dirsrv.systemd"
|
2014-10-20 15:00:16 -05:00
|
|
|
SYSCONFIG_IPA_DNSKEYSYNCD = "/etc/sysconfig/ipa-dnskeysyncd"
|
2015-08-13 08:03:05 -05:00
|
|
|
SYSCONFIG_IPA_ODS_EXPORTER = "/etc/sysconfig/ipa-ods-exporter"
|
2014-06-17 04:45:43 -05:00
|
|
|
SYSCONFIG_HTTPD = "/etc/sysconfig/httpd"
|
2014-05-29 07:47:17 -05:00
|
|
|
SYSCONFIG_KRB5KDC_DIR = "/etc/sysconfig/krb5kdc"
|
2014-10-20 15:00:16 -05:00
|
|
|
SYSCONFIG_NAMED = "/etc/sysconfig/named"
|
2014-06-17 04:45:43 -05:00
|
|
|
SYSCONFIG_NFS = "/etc/sysconfig/nfs"
|
2014-05-29 07:47:17 -05:00
|
|
|
SYSCONFIG_NTPD = "/etc/sysconfig/ntpd"
|
2014-10-20 15:00:16 -05:00
|
|
|
SYSCONFIG_ODS = "/etc/sysconfig/ods"
|
2014-05-29 07:47:17 -05:00
|
|
|
SYSCONFIG_PKI = "/etc/sysconfig/pki"
|
|
|
|
SYSCONFIG_PKI_TOMCAT = "/etc/sysconfig/pki-tomcat"
|
|
|
|
SYSCONFIG_PKI_TOMCAT_PKI_TOMCAT_DIR = "/etc/sysconfig/pki/tomcat/pki-tomcat"
|
2014-06-09 06:45:48 -05:00
|
|
|
ETC_SYSTEMD_SYSTEM_DIR = "/etc/systemd/system/"
|
2016-08-02 09:58:07 -05:00
|
|
|
SYSTEMD_SYSTEM_HTTPD_D_DIR = "/etc/systemd/system/httpd.service.d/"
|
|
|
|
SYSTEMD_SYSTEM_HTTPD_IPA_CONF = "/etc/systemd/system/httpd.service.d/ipa.conf"
|
2014-05-29 07:47:17 -05:00
|
|
|
SYSTEMD_CERTMONGER_SERVICE = "/etc/systemd/system/multi-user.target.wants/certmonger.service"
|
|
|
|
SYSTEMD_IPA_SERVICE = "/etc/systemd/system/multi-user.target.wants/ipa.service"
|
|
|
|
SYSTEMD_SSSD_SERVICE = "/etc/systemd/system/multi-user.target.wants/sssd.service"
|
|
|
|
SYSTEMD_PKI_TOMCAT_SERVICE = "/etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@pki-tomcat.service"
|
2016-08-05 10:35:49 -05:00
|
|
|
ETC_TMPFILESD_DIRSRV = "/etc/tmpfiles.d/dirsrv-%s.conf"
|
2014-10-23 08:06:34 -05:00
|
|
|
DNSSEC_TRUSTED_KEY = "/etc/trusted-key.key"
|
2014-05-29 07:47:17 -05:00
|
|
|
HOME_DIR = "/home"
|
2016-06-27 03:23:14 -05:00
|
|
|
PROC_FIPS_ENABLED = "/proc/sys/crypto/fips_enabled"
|
2014-06-17 04:45:43 -05:00
|
|
|
ROOT_IPA_CACHE = "/root/.ipa_cache"
|
2014-05-29 07:47:17 -05:00
|
|
|
ROOT_PKI = "/root/.pki"
|
2014-10-01 13:59:46 -05:00
|
|
|
DOGTAG_ADMIN_P12 = "/root/ca-agent.p12"
|
|
|
|
KRA_AGENT_PEM = "/etc/httpd/alias/kra-agent.pem"
|
2014-05-29 07:47:17 -05:00
|
|
|
CACERT_P12 = "/root/cacert.p12"
|
2014-06-17 04:45:43 -05:00
|
|
|
ROOT_IPA_CSR = "/root/ipa.csr"
|
|
|
|
NAMED_PID = "/run/named/named.pid"
|
2014-05-29 07:47:17 -05:00
|
|
|
NOLOGIN = "/sbin/nologin"
|
2014-06-17 04:45:43 -05:00
|
|
|
SBIN_REBOOT = "/sbin/reboot"
|
2014-06-09 06:45:48 -05:00
|
|
|
SBIN_RESTORECON = "/sbin/restorecon"
|
2014-05-29 07:47:17 -05:00
|
|
|
SBIN_SERVICE = "/sbin/service"
|
|
|
|
TMP = "/tmp"
|
|
|
|
TMP_CA_P12 = "/tmp/ca.p12"
|
|
|
|
TMP_KRB5CC = "/tmp/krb5cc_%d"
|
|
|
|
USR_DIR = "/usr"
|
2016-02-23 05:10:34 -06:00
|
|
|
CERTMONGER_COMMAND_TEMPLATE = "/usr/libexec/ipa/certmonger/%s"
|
2014-05-29 07:47:17 -05:00
|
|
|
PKCS12EXPORT = "/usr/bin/PKCS12Export"
|
|
|
|
CERTUTIL = "/usr/bin/certutil"
|
|
|
|
CHROMIUM_BROWSER = "/usr/bin/chromium-browser"
|
|
|
|
FIREFOX = "/usr/bin/firefox"
|
|
|
|
GETCERT = "/usr/bin/getcert"
|
|
|
|
GPG = "/usr/bin/gpg"
|
|
|
|
GPG_AGENT = "/usr/bin/gpg-agent"
|
|
|
|
IPA_GETCERT = "/usr/bin/ipa-getcert"
|
|
|
|
KDESTROY = "/usr/bin/kdestroy"
|
|
|
|
KINIT = "/usr/bin/kinit"
|
2014-06-17 04:45:43 -05:00
|
|
|
BIN_KVNO = "/usr/bin/kvno"
|
2014-05-29 07:47:17 -05:00
|
|
|
LDAPMODIFY = "/usr/bin/ldapmodify"
|
|
|
|
LDAPPASSWD = "/usr/bin/ldappasswd"
|
|
|
|
NET = "/usr/bin/net"
|
2014-06-17 04:45:43 -05:00
|
|
|
BIN_NISDOMAINNAME = "/usr/bin/nisdomainname"
|
|
|
|
NSUPDATE = "/usr/bin/nsupdate"
|
2014-10-20 15:00:16 -05:00
|
|
|
ODS_KSMUTIL = "/usr/bin/ods-ksmutil"
|
|
|
|
ODS_SIGNER = "/usr/sbin/ods-signer"
|
2014-05-29 07:47:17 -05:00
|
|
|
OPENSSL = "/usr/bin/openssl"
|
|
|
|
PK12UTIL = "/usr/bin/pk12util"
|
|
|
|
SIGNTOOL = "/usr/bin/signtool"
|
2014-10-20 15:00:16 -05:00
|
|
|
SOFTHSM2_UTIL = "/usr/bin/softhsm2-util"
|
2014-05-29 07:47:17 -05:00
|
|
|
SSLGET = "/usr/bin/sslget"
|
2014-06-17 04:45:43 -05:00
|
|
|
SSS_SSH_AUTHORIZEDKEYS = "/usr/bin/sss_ssh_authorizedkeys"
|
|
|
|
SSS_SSH_KNOWNHOSTSPROXY = "/usr/bin/sss_ssh_knownhostsproxy"
|
2015-02-25 17:19:47 -06:00
|
|
|
BIN_TIMEOUT = "/usr/bin/timeout"
|
2014-06-09 06:45:48 -05:00
|
|
|
UPDATE_CA_TRUST = "/usr/bin/update-ca-trust"
|
2015-12-04 15:52:03 -06:00
|
|
|
BIN_CURL = "/usr/bin/curl"
|
2014-05-29 07:47:17 -05:00
|
|
|
BIND_LDAP_SO = "/usr/lib/bind/ldap.so"
|
2014-11-11 06:00:18 -06:00
|
|
|
BIND_LDAP_DNS_IPA_WORKDIR = "/var/named/dyndb-ldap/ipa/"
|
2014-10-20 15:00:16 -05:00
|
|
|
BIND_LDAP_DNS_ZONE_WORKDIR = "/var/named/dyndb-ldap/ipa/master/"
|
2014-05-29 07:47:17 -05:00
|
|
|
USR_LIB_DIRSRV = "/usr/lib/dirsrv"
|
|
|
|
LIB_FIREFOX = "/usr/lib/firefox"
|
2014-10-20 15:00:16 -05:00
|
|
|
LIBSOFTHSM2_SO = "/usr/lib/pkcs11/libsofthsm2.so"
|
2016-08-01 03:51:24 -05:00
|
|
|
PAM_KRB5_SO = "/usr/lib/security/pam_krb5.so"
|
2014-06-17 04:45:43 -05:00
|
|
|
LIB_SYSTEMD_SYSTEMD_DIR = "/usr/lib/systemd/system/"
|
2014-05-29 07:47:17 -05:00
|
|
|
BIND_LDAP_SO_64 = "/usr/lib64/bind/ldap.so"
|
|
|
|
USR_LIB_DIRSRV_64 = "/usr/lib64/dirsrv"
|
|
|
|
LIB64_FIREFOX = "/usr/lib64/firefox"
|
2014-10-20 15:00:16 -05:00
|
|
|
LIBSOFTHSM2_SO_64 = "/usr/lib64/pkcs11/libsofthsm2.so"
|
2016-08-01 03:51:24 -05:00
|
|
|
PAM_KRB5_SO_64 = "/usr/lib64/security/pam_krb5.so"
|
2014-05-29 07:47:17 -05:00
|
|
|
DOGTAG_IPA_CA_RENEW_AGENT_SUBMIT = "/usr/libexec/certmonger/dogtag-ipa-ca-renew-agent-submit"
|
2014-06-17 04:45:43 -05:00
|
|
|
DOGTAG_IPA_RENEW_AGENT_SUBMIT = "/usr/libexec/certmonger/dogtag-ipa-renew-agent-submit"
|
2015-01-08 03:06:46 -06:00
|
|
|
IPA_SERVER_GUARD = "/usr/libexec/certmonger/ipa-server-guard"
|
2015-10-03 03:40:15 -05:00
|
|
|
GENERATE_RNDC_KEY = "/usr/libexec/generate-rndc-key.sh"
|
2014-10-20 15:00:16 -05:00
|
|
|
IPA_DNSKEYSYNCD_REPLICA = "/usr/libexec/ipa/ipa-dnskeysync-replica"
|
|
|
|
IPA_DNSKEYSYNCD = "/usr/libexec/ipa/ipa-dnskeysyncd"
|
2016-03-16 03:04:42 -05:00
|
|
|
IPA_HTTPD_KDCPROXY = "/usr/libexec/ipa/ipa-httpd-kdcproxy"
|
2014-10-20 15:00:16 -05:00
|
|
|
IPA_ODS_EXPORTER = "/usr/libexec/ipa/ipa-ods-exporter"
|
|
|
|
DNSSEC_KEYFROMLABEL = "/usr/sbin/dnssec-keyfromlabel-pkcs11"
|
2014-05-29 07:47:17 -05:00
|
|
|
GETSEBOOL = "/usr/sbin/getsebool"
|
|
|
|
GROUPADD = "/usr/sbin/groupadd"
|
|
|
|
HTTPD = "/usr/sbin/httpd"
|
2014-06-17 04:45:43 -05:00
|
|
|
IPA_CLIENT_INSTALL = "/usr/sbin/ipa-client-install"
|
2015-07-01 08:05:45 -05:00
|
|
|
IPA_DNS_INSTALL = "/usr/sbin/ipa-dns-install"
|
2014-06-17 04:45:43 -05:00
|
|
|
SBIN_IPA_JOIN = "/usr/sbin/ipa-join"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPA_REPLICA_CONNCHECK = "/usr/sbin/ipa-replica-conncheck"
|
2014-06-17 04:45:43 -05:00
|
|
|
IPA_RMKEYTAB = "/usr/sbin/ipa-rmkeytab"
|
|
|
|
IPACTL = "/usr/sbin/ipactl"
|
2014-10-20 15:00:16 -05:00
|
|
|
NAMED = "/usr/sbin/named"
|
|
|
|
NAMED_PKCS11 = "/usr/sbin/named-pkcs11"
|
2014-05-29 07:47:17 -05:00
|
|
|
NTPD = "/usr/sbin/ntpd"
|
|
|
|
PKIDESTROY = "/usr/sbin/pkidestroy"
|
|
|
|
PKISPAWN = "/usr/sbin/pkispawn"
|
2016-04-18 20:47:29 -05:00
|
|
|
PKI = "/usr/bin/pki"
|
2015-01-21 06:40:36 -06:00
|
|
|
REMOVE_DS_PL = "/usr/sbin/remove-ds.pl"
|
2014-05-29 07:47:17 -05:00
|
|
|
RESTORECON = "/usr/sbin/restorecon"
|
|
|
|
SELINUXENABLED = "/usr/sbin/selinuxenabled"
|
|
|
|
SETSEBOOL = "/usr/sbin/setsebool"
|
|
|
|
SETUP_DS_PL = "/usr/sbin/setup-ds.pl"
|
|
|
|
SMBD = "/usr/sbin/smbd"
|
|
|
|
USERADD = "/usr/sbin/useradd"
|
|
|
|
USR_SHARE_IPA_DIR = "/usr/share/ipa/"
|
2015-07-15 04:17:14 -05:00
|
|
|
CA_TOPOLOGY_ULDIF = "/usr/share/ipa/ca-topology.uldif"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPA_HTML_DIR = "/usr/share/ipa/html"
|
|
|
|
CA_CRT = "/usr/share/ipa/html/ca.crt"
|
|
|
|
KRB_CON = "/usr/share/ipa/html/krb.con"
|
|
|
|
HTML_KRB5_INI = "/usr/share/ipa/html/krb5.ini"
|
|
|
|
HTML_KRBREALM_CON = "/usr/share/ipa/html/krbrealm.con"
|
2014-06-17 04:45:43 -05:00
|
|
|
NIS_ULDIF = "/usr/share/ipa/nis.uldif"
|
2016-01-06 12:47:22 -06:00
|
|
|
NIS_UPDATE_ULDIF = "/usr/share/ipa/nis-update.uldif"
|
2014-05-29 07:47:17 -05:00
|
|
|
SCHEMA_COMPAT_ULDIF = "/usr/share/ipa/schema_compat.uldif"
|
|
|
|
IPA_JS_PLUGINS_DIR = "/usr/share/ipa/ui/js/plugins"
|
|
|
|
UPDATES_DIR = "/usr/share/ipa/updates/"
|
2016-03-22 17:32:52 -05:00
|
|
|
DICT_WORDS = "/usr/share/dict/words"
|
2014-06-17 04:45:43 -05:00
|
|
|
CACHE_IPA_SESSIONS = "/var/cache/ipa/sessions"
|
|
|
|
VAR_KERBEROS_KRB5KDC_DIR = "/var/kerberos/krb5kdc/"
|
2014-05-29 07:47:17 -05:00
|
|
|
VAR_KRB5KDC_K5_REALM = "/var/kerberos/krb5kdc/.k5."
|
|
|
|
CACERT_PEM = "/var/kerberos/krb5kdc/cacert.pem"
|
2016-03-22 17:32:52 -05:00
|
|
|
KRB5KDC_KADM5_ACL = "/var/kerberos/krb5kdc/kadm5.acl"
|
|
|
|
KRB5KDC_KADM5_KEYTAB = "/var/kerberos/krb5kdc/kadm5.keytab"
|
2014-05-29 07:47:17 -05:00
|
|
|
KRB5KDC_KDC_CONF = "/var/kerberos/krb5kdc/kdc.conf"
|
|
|
|
KDC_PEM = "/var/kerberos/krb5kdc/kdc.pem"
|
|
|
|
VAR_LIB = "/var/lib"
|
|
|
|
AUTHCONFIG_LAST = "/var/lib/authconfig/last"
|
|
|
|
VAR_LIB_CERTMONGER_DIR = "/var/lib/certmonger"
|
|
|
|
CERTMONGER_CAS_DIR = "/var/lib/certmonger/cas/"
|
2014-06-17 04:45:43 -05:00
|
|
|
CERTMONGER_CAS_CA_RENEWAL = "/var/lib/certmonger/cas/ca_renewal"
|
2014-05-29 07:47:17 -05:00
|
|
|
CERTMONGER_REQUESTS_DIR = "/var/lib/certmonger/requests/"
|
|
|
|
VAR_LIB_DIRSRV = "/var/lib/dirsrv"
|
|
|
|
DIRSRV_BOOT_LDIF = "/var/lib/dirsrv/boot.ldif"
|
|
|
|
VAR_LIB_DIRSRV_INSTANCE_SCRIPTS_TEMPLATE = "/var/lib/dirsrv/scripts-%s"
|
|
|
|
VAR_LIB_SLAPD_INSTANCE_DIR_TEMPLATE = "/var/lib/dirsrv/slapd-%s"
|
|
|
|
SLAPD_INSTANCE_BACKUP_DIR_TEMPLATE = "/var/lib/dirsrv/slapd-%s/bak/%s"
|
2014-12-01 06:12:15 -06:00
|
|
|
SLAPD_INSTANCE_DB_DIR_TEMPLATE = "/var/lib/dirsrv/slapd-%s/db/%s"
|
2014-05-29 07:47:17 -05:00
|
|
|
SLAPD_INSTANCE_LDIF_DIR_TEMPLATE = "/var/lib/dirsrv/slapd-%s/ldif"
|
|
|
|
VAR_LIB_IPA = "/var/lib/ipa"
|
|
|
|
IPA_CLIENT_SYSRESTORE = "/var/lib/ipa-client/sysrestore"
|
2014-06-17 04:45:43 -05:00
|
|
|
SYSRESTORE_INDEX = "/var/lib/ipa-client/sysrestore/sysrestore.index"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPA_BACKUP_DIR = "/var/lib/ipa/backup"
|
2014-10-20 15:00:16 -05:00
|
|
|
IPA_DNSSEC_DIR = "/var/lib/ipa/dnssec"
|
2015-05-13 07:45:32 -05:00
|
|
|
IPA_KASP_DB_BACKUP = "/var/lib/ipa/ipa-kasp.db.backup"
|
2014-10-20 15:00:16 -05:00
|
|
|
DNSSEC_TOKENS_DIR = "/var/lib/ipa/dnssec/tokens"
|
|
|
|
DNSSEC_SOFTHSM_PIN = "/var/lib/ipa/dnssec/softhsm_pin"
|
2014-06-17 04:45:43 -05:00
|
|
|
IPA_CA_CSR = "/var/lib/ipa/ca.csr"
|
2014-05-29 07:47:17 -05:00
|
|
|
PKI_CA_PUBLISH_DIR = "/var/lib/ipa/pki-ca/publish"
|
|
|
|
REPLICA_INFO_TEMPLATE = "/var/lib/ipa/replica-info-%s"
|
|
|
|
REPLICA_INFO_GPG_TEMPLATE = "/var/lib/ipa/replica-info-%s.gpg"
|
|
|
|
SYSRESTORE = "/var/lib/ipa/sysrestore"
|
|
|
|
STATEFILE_DIR = "/var/lib/ipa/sysupgrade"
|
2015-09-23 03:35:06 -05:00
|
|
|
VAR_LIB_KDCPROXY = "/var/lib/kdcproxy"
|
2014-05-29 07:47:17 -05:00
|
|
|
VAR_LIB_PKI_DIR = "/var/lib/pki"
|
2015-11-09 11:28:47 -06:00
|
|
|
VAR_LIB_PKI_CA_ALIAS_DIR = "/var/lib/pki-ca/alias"
|
2014-05-29 07:47:17 -05:00
|
|
|
VAR_LIB_PKI_TOMCAT_DIR = "/var/lib/pki/pki-tomcat"
|
|
|
|
CA_BACKUP_KEYS_P12 = "/var/lib/pki/pki-tomcat/alias/ca_backup_keys.p12"
|
2014-03-18 10:23:30 -05:00
|
|
|
KRA_BACKUP_KEYS_P12 = "/var/lib/pki/pki-tomcat/alias/kra_backup_keys.p12"
|
2015-11-09 11:28:47 -06:00
|
|
|
CA_CS_CFG_PATH = "/var/lib/pki/pki-tomcat/conf/ca/CS.cfg"
|
|
|
|
CAJARSIGNINGCERT_CFG = (
|
|
|
|
"/var/lib/pki/pki-tomcat/ca/profiles/ca/caJarSigningCert.cfg")
|
|
|
|
CASIGNEDLOGCERT_CFG = (
|
|
|
|
"/var/lib/pki/pki-tomcat/ca/profiles/ca/caSignedLogCert.cfg")
|
|
|
|
KRA_CS_CFG_PATH = "/var/lib/pki/pki-tomcat/conf/kra/CS.cfg"
|
2014-03-18 10:23:30 -05:00
|
|
|
KRACERT_P12 = "/root/kracert.p12"
|
2014-05-29 07:47:17 -05:00
|
|
|
SAMBA_DIR = "/var/lib/samba/"
|
2015-06-05 12:27:46 -05:00
|
|
|
SSSD_DB = "/var/lib/sss/db"
|
2014-05-29 07:47:17 -05:00
|
|
|
SSSD_MC_GROUP = "/var/lib/sss/mc/group"
|
|
|
|
SSSD_MC_PASSWD = "/var/lib/sss/mc/passwd"
|
2014-06-17 04:45:43 -05:00
|
|
|
SSSD_PUBCONF_KNOWN_HOSTS = "/var/lib/sss/pubconf/known_hosts"
|
|
|
|
SSSD_PUBCONF_KRB5_INCLUDE_D_DIR = "/var/lib/sss/pubconf/krb5.include.d/"
|
2014-05-29 07:47:17 -05:00
|
|
|
DIRSRV_LOCK_DIR = "/var/lock/dirsrv"
|
|
|
|
VAR_LOG_DIRSRV_INSTANCE_TEMPLATE = "/var/log/dirsrv/slapd-%s"
|
|
|
|
SLAPD_INSTANCE_ACCESS_LOG_TEMPLATE = "/var/log/dirsrv/slapd-%s/access"
|
|
|
|
SLAPD_INSTANCE_ERROR_LOG_TEMPLATE = "/var/log/dirsrv/slapd-%s/errors"
|
|
|
|
VAR_LOG_HTTPD_DIR = "/var/log/httpd"
|
2016-07-19 05:09:29 -05:00
|
|
|
VAR_LOG_HTTPD_ERROR = "/var/log/httpd/error_log"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPABACKUP_LOG = "/var/log/ipabackup.log"
|
|
|
|
IPACLIENT_INSTALL_LOG = "/var/log/ipaclient-install.log"
|
|
|
|
IPACLIENT_UNINSTALL_LOG = "/var/log/ipaclient-uninstall.log"
|
2014-06-17 04:45:43 -05:00
|
|
|
IPAREPLICA_CA_INSTALL_LOG = "/var/log/ipareplica-ca-install.log"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPAREPLICA_CONNCHECK_LOG = "/var/log/ipareplica-conncheck.log"
|
|
|
|
IPAREPLICA_INSTALL_LOG = "/var/log/ipareplica-install.log"
|
|
|
|
IPARESTORE_LOG = "/var/log/iparestore.log"
|
|
|
|
IPASERVER_INSTALL_LOG = "/var/log/ipaserver-install.log"
|
2015-06-10 03:50:42 -05:00
|
|
|
IPASERVER_KRA_INSTALL_LOG = "/var/log/ipaserver-kra-install.log"
|
|
|
|
IPASERVER_KRA_UNINSTALL_LOG = "/var/log/ipaserver-kra-uninstall.log"
|
2014-05-29 07:47:17 -05:00
|
|
|
IPASERVER_UNINSTALL_LOG = "/var/log/ipaserver-uninstall.log"
|
|
|
|
IPAUPGRADE_LOG = "/var/log/ipaupgrade.log"
|
|
|
|
KADMIND_LOG = "/var/log/kadmind.log"
|
|
|
|
MESSAGES = "/var/log/messages"
|
|
|
|
VAR_LOG_PKI_DIR = "/var/log/pki/"
|
|
|
|
TOMCAT_TOPLEVEL_DIR = "/var/log/pki/pki-tomcat"
|
|
|
|
TOMCAT_CA_DIR = "/var/log/pki/pki-tomcat/ca"
|
|
|
|
TOMCAT_CA_ARCHIVE_DIR = "/var/log/pki/pki-tomcat/ca/archive"
|
|
|
|
TOMCAT_SIGNEDAUDIT_DIR = "/var/log/pki/pki-tomcat/ca/signedAudit"
|
2015-09-17 10:09:33 -05:00
|
|
|
TOMCAT_KRA_DIR = "/var/log/pki/pki-tomcat/kra"
|
|
|
|
TOMCAT_KRA_ARCHIVE_DIR = "/var/log/pki/pki-tomcat/kra/archive"
|
|
|
|
TOMCAT_KRA_SIGNEDAUDIT_DIR = "/var/log/pki/pki-tomcat/kra/signedAudit"
|
2014-05-29 07:47:17 -05:00
|
|
|
LOG_SECURE = "/var/log/secure"
|
2016-03-08 09:26:23 -06:00
|
|
|
VAR_LOG_SSSD_DIR = "/var/log/sssd"
|
2014-05-29 07:47:17 -05:00
|
|
|
NAMED_RUN = "/var/named/data/named.run"
|
2014-10-20 15:00:16 -05:00
|
|
|
VAR_OPENDNSSEC_DIR = "/var/opendnssec"
|
|
|
|
OPENDNSSEC_KASP_DB = "/var/opendnssec/kasp.db"
|
2015-09-01 09:17:16 -05:00
|
|
|
IPA_ODS_EXPORTER_CCACHE = "/var/opendnssec/tmp/ipa-ods-exporter.ccache"
|
2014-05-29 07:47:17 -05:00
|
|
|
VAR_RUN_DIRSRV_DIR = "/var/run/dirsrv"
|
2015-05-15 08:45:34 -05:00
|
|
|
KRB5CC_HTTPD = "/var/run/httpd/ipa/krbcache/krb5ccache"
|
2015-01-08 03:06:46 -06:00
|
|
|
IPA_RENEWAL_LOCK = "/var/run/ipa/renewal.lock"
|
2014-05-29 07:47:17 -05:00
|
|
|
SVC_LIST_FILE = "/var/run/ipa/services.list"
|
|
|
|
IPA_MEMCACHED_DIR = "/var/run/ipa_memcached"
|
|
|
|
VAR_RUN_IPA_MEMCACHED = "/var/run/ipa_memcached/ipa_memcached"
|
|
|
|
KRB5CC_SAMBA = "/var/run/samba/krb5cc_samba"
|
|
|
|
SLAPD_INSTANCE_SOCKET_TEMPLATE = "/var/run/slapd-%s.socket"
|
|
|
|
ALL_SLAPD_INSTANCE_SOCKETS = "/var/run/slapd-*.socket"
|
2014-03-18 10:23:30 -05:00
|
|
|
ADMIN_CERT_PATH = '/root/.dogtag/pki-tomcat/ca_admin.cert'
|
|
|
|
ENTROPY_AVAIL = '/proc/sys/kernel/random/entropy_avail'
|
2015-04-01 10:27:36 -05:00
|
|
|
LDIF2DB = '/usr/sbin/ldif2db'
|
|
|
|
DB2LDIF = '/usr/sbin/db2ldif'
|
|
|
|
BAK2DB = '/usr/sbin/bak2db'
|
|
|
|
DB2BAK = '/usr/sbin/db2bak'
|
2015-06-23 10:01:00 -05:00
|
|
|
KDCPROXY_CONFIG = '/etc/ipa/kdcproxy/kdcproxy.conf'
|
2015-07-07 08:49:27 -05:00
|
|
|
CERTMONGER = '/usr/sbin/certmonger'
|
2015-09-25 14:09:24 -05:00
|
|
|
NETWORK_MANAGER_CONFIG_DIR = '/etc/NetworkManager/conf.d'
|
2015-05-08 12:39:29 -05:00
|
|
|
IPA_CUSTODIA_CONF_DIR = '/etc/ipa/custodia'
|
|
|
|
IPA_CUSTODIA_CONF = '/etc/ipa/custodia/custodia.conf'
|
|
|
|
IPA_CUSTODIA_SOCKET = '/run/httpd/ipa-custodia.sock'
|
|
|
|
IPA_CUSTODIA_AUDIT_LOG = '/var/log/ipa-custodia.audit.log'
|
2015-06-11 14:45:38 -05:00
|
|
|
IPA_GETKEYTAB = '/usr/sbin/ipa-getkeytab'
|
2016-08-05 05:04:19 -05:00
|
|
|
EXTERNAL_SCHEMA_DIR = '/usr/share/ipa/schema.d'
|
2015-07-07 08:49:27 -05:00
|
|
|
|
2016-07-26 06:35:22 -05:00
|
|
|
@property
|
|
|
|
def USER_CACHE_PATH(self):
|
|
|
|
return (
|
|
|
|
os.environ.get('XDG_CACHE_HOME') or
|
|
|
|
os.path.join(
|
|
|
|
os.environ.get(
|
|
|
|
'HOME',
|
|
|
|
os.path.expanduser('~')
|
|
|
|
),
|
|
|
|
'.cache'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2015-07-07 08:49:27 -05:00
|
|
|
path_namespace = BasePathNamespace
|