(cache_file_path)
:param cache_file_path: Location of the Kerberos credentials (ticket) cache. It defaults to /tmp/krb5cc_[uid]
:param cache_file_path: Location of the Kerberos credentials (ticket) cache. It defaults to /tmp/krb5cc_[uid]
: param cache_file_path : Location of the Kerberos credentials ( ticket ) cache . It defaults to / tmp / krb5cc_ [ uid ]
def handle_kerberos_cache(cache_file_path):
    """
    :param cache_file_path: Location of the Kerberos credentials (ticket) cache. It defaults to /tmp/krb5cc_[uid]
    """
    old_cache_path = os.environ.get('KRB5CCNAME')
    os.environ['KRB5CCNAME'] = cache_file_path

    yield

    if old_cache_path is None:
        del os.environ['KRB5CCNAME']
    else:
        os.environ['KRB5CCNAME'] = old_cache_path
def handle_kerberos_cache ( cache_file_path ) : old_cache_path = os . environ . get ( 'KRB5CCNAME' ) os . environ [ 'KRB5CCNAME' ] = cache_file_path yield if old_cache_path is None : del os . environ [ 'KRB5CCNAME' ] else : os . environ [ 'KRB5CCNAME' ] = old_cache_path