summaryrefslogtreecommitdiffstats
path: root/ipaserver/session.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-12-01 11:37:20 -0500
committerJan Cholasta <jcholast@redhat.com>2017-02-15 07:13:37 +0100
commit38c66896de1769077cd5b057133606ec5eeaf62b (patch)
tree579031e3d54e8aec702abd60a39fbaff9f8f3209 /ipaserver/session.py
parentc894ebefc5c4c4c7ea340d6ddc4cd3c081917e4a (diff)
downloadfreeipa-38c66896de1769077cd5b057133606ec5eeaf62b.tar.gz
freeipa-38c66896de1769077cd5b057133606ec5eeaf62b.tar.xz
freeipa-38c66896de1769077cd5b057133606ec5eeaf62b.zip
Generate tmpfiles config at install time
We do not want to generate runtime directories just because the packages are installed, but only if the server is actually setup and run. Also this will be needed later because we will create a user at install time and some tmpfiles will need to be owned by this user. As we are changing this code also rationalize the directory structure and move it from the http rundir to the ipa specific rundir. 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/session.py')
-rw-r--r--ipaserver/session.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/ipaserver/session.py b/ipaserver/session.py
index cdf8995bc..6957feb74 100644
--- a/ipaserver/session.py
+++ b/ipaserver/session.py
@@ -21,23 +21,7 @@ import os
from ipalib.request import context
from ipalib.krb_utils import (
krb5_parse_ccache,
- krb5_unparse_ccache
)
-from ipaplatform.paths import paths
-
-
-krbccache_dir = paths.IPA_HTTPD_DIR
-krbccache_prefix = 'krbcc_'
-
-
-def get_ipa_ccache_name(scheme='FILE'):
- if scheme == 'FILE':
- name = os.path.join(krbccache_dir, '%s%s' % (krbccache_prefix, os.getpid()))
- else:
- raise ValueError('ccache scheme "%s" unsupported', scheme)
-
- ccache_name = krb5_unparse_ccache(scheme, name)
- return ccache_name
def logout(ccache_name=None):