diff options
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r-- | ipaserver/install/installutils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index d23f9b57f..e6f50a52c 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -766,10 +766,11 @@ def check_pkcs12(pkcs12_info, ca_file, hostname): @contextmanager -def private_ccache(): +def private_ccache(path=None): - (desc, path) = tempfile.mkstemp(prefix='krbcc') - os.close(desc) + if path is None: + (desc, path) = tempfile.mkstemp(prefix='krbcc') + os.close(desc) original_value = os.environ.get('KRB5CCNAME', None) |