httpd should destroy all CCACHEs

Use "kdestroy -A" command to destroy all CCACHEs, both the primary
and the non-primary ones to make sure that the non-primary ones are
not used later.

https://fedorahosted.org/freeipa/ticket/4084
This commit is contained in:
Martin Kosek 2014-01-22 16:08:51 +01:00
parent f49c26db2c
commit b7f1531262

View File

@ -218,7 +218,7 @@ class HTTPInstance(service.Service):
# Clean up existing ccache
# Make sure that empty env is passed to avoid passing KRB5CCNAME from
# current env
ipautil.run(['kdestroy'], runas='apache', raiseonerr=False, env={})
ipautil.run(['kdestroy', '-A'], runas='apache', raiseonerr=False, env={})
def __configure_http(self):
target_fname = '/etc/httpd/conf.d/ipa.conf'