summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ipa_restore.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-11-20 15:11:02 +0100
committerPetr Viktorin <pviktori@dhcp-31-13.brq.redhat.com>2014-11-20 16:43:26 +0100
commita3c799f2f4769c1ae8516600e3729a2188ca539f (patch)
tree1cc236ba40320e69c11bc31ddc5fb07dfd70b35b /ipaserver/install/ipa_restore.py
parent3d1e9813e641db59b7dff52f809949bff6c90ce0 (diff)
downloadfreeipa-a3c799f2f4769c1ae8516600e3729a2188ca539f.tar.gz
freeipa-a3c799f2f4769c1ae8516600e3729a2188ca539f.tar.xz
freeipa-a3c799f2f4769c1ae8516600e3729a2188ca539f.zip
restore: clear httpd ccache after restore
so that httpd ccache won't contain old credentials which would make ipa CLI fail with error: Insufficient access: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Decrypt integrity check failed) https://fedorahosted.org/freeipa/ticket/4726 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaserver/install/ipa_restore.py')
-rw-r--r--ipaserver/install/ipa_restore.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py
index d52e6d1bb..6f43321b0 100644
--- a/ipaserver/install/ipa_restore.py
+++ b/ipaserver/install/ipa_restore.py
@@ -314,6 +314,8 @@ class Restore(admintool.AdminTool):
self.log.info('Restarting SSSD')
sssd = services.service('sssd')
sssd.restart()
+ http = httpinstance.HTTPInstance()
+ http.remove_httpd_ccache()
finally:
try:
os.chdir(cwd)