summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/krbinstance.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-12-08 23:15:28 -0500
committerSimo Sorce <simo@redhat.com>2015-12-12 01:46:26 -0500
commit2fb44359d08f743ccde6de91f74a6a5cc4a8b3d2 (patch)
tree6e971705d86ea55b93b245166796252a6d456e75 /ipaserver/install/krbinstance.py
parent0cc2a0ff7ff6208dc869fced1cd881cede1ca643 (diff)
downloadfreeipa-master_keytab.tar.gz
freeipa-master_keytab.tar.xz
freeipa-master_keytab.zip
WIP: store mkey in keytabmaster_keytab
Diffstat (limited to 'ipaserver/install/krbinstance.py')
-rw-r--r--ipaserver/install/krbinstance.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py
index 4f1995f7b..214945301 100644
--- a/ipaserver/install/krbinstance.py
+++ b/ipaserver/install/krbinstance.py
@@ -273,6 +273,13 @@ class KrbInstance(service.Service):
os.chmod(path, chmod)
def __init_ipa_kdb(self):
+ # Save away old stash file if any
+ old_stash = os.path.join(paths.VAR_KERBEROS_KRB5KDC_DIR,
+ '.k5.' + self.realm)
+ if os.path.exists(old_stash):
+ self.fstore.backup_file(old_stash);
+ os.unlink(old_stash);
+
# kdb5_util may take a very long time when entropy is low
installutils.check_entropy()