summaryrefslogtreecommitdiffstats
path: root/ipaserver/secrets/store.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-12-13 10:32:32 -0500
committerJan Cholasta <jcholast@redhat.com>2017-02-15 07:13:37 +0100
commitd124e307f3b7d88bca53784f030ed6043b224432 (patch)
tree775fca61a10a7b2b2d0af42cf5ae9290fa6103ec /ipaserver/secrets/store.py
parentd2f5fc304f1938d23171ae330fa20b213ceed54e (diff)
downloadfreeipa-d124e307f3b7d88bca53784f030ed6043b224432.tar.gz
freeipa-d124e307f3b7d88bca53784f030ed6043b224432.tar.xz
freeipa-d124e307f3b7d88bca53784f030ed6043b224432.zip
Separate RA cert store from the HTTP cert store
This is in preparation for separating out the user under which the ipa api framework runs as. This commit also removes certs.NSS_DIR to avoid confusion and replaces it where appropriate with the correct NSS DB directory, either the old HTTPD_ALIAS_DIR ot the RA DB IPA_RADB_DIR. In some cases its use is removed altogether as it was simply not necessary. https://fedorahosted.org/freeipa/ticket/5959 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/secrets/store.py')
-rw-r--r--ipaserver/secrets/store.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/secrets/store.py b/ipaserver/secrets/store.py
index 2c58eeedb..b2d724d26 100644
--- a/ipaserver/secrets/store.py
+++ b/ipaserver/secrets/store.py
@@ -46,7 +46,7 @@ def PKI_TOMCAT_password_callback():
def HTTPD_password_callback():
- with open(paths.ALIAS_PWDFILE_TXT) as f:
+ with open(os.path.join(paths.IPA_RADB_DIR, 'pwdfile.txt')) as f:
password = f.read()
return password
@@ -206,7 +206,7 @@ NAME_DB_MAP = {
},
'ra': {
'type': 'NSSDB',
- 'path': paths.HTTPD_ALIAS_DIR,
+ 'path': paths.IPA_RADB_DIR,
'handler': NSSCertDB,
'pwcallback': HTTPD_password_callback,
},