Merge "Use the generated ccache in novajoin-ipa-setup"

This commit is contained in:
Zuul 2018-02-05 15:21:17 +00:00 committed by Gerrit Code Review
commit 168d812557
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ if __name__ == '__main__':
try:
ccache_dir = novajoin.kinit(opts.principal, opts.realm,
opts.password, krb5_conf)
# We use the ccache that we just created inside the kinit
# function.
os.environ['KRB5CCNAME'] = novajoin.ccache_name
except ConfigurationError:
if krb5_conf:
os.remove(krb5_conf)