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>
This commit is contained in:
Petr Vobornik authored and Petr Viktorin committed 2014-11-20 16:43:26 +01:00
1 parent 3d1e9813e6
commit a3c799f2f4
1 file changed
+2
+2
View File
@@ -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)