Skip to content
Snippets Groups Projects
Unverified Commit 67261c3d authored by Sergio Oliveira's avatar Sergio Oliveira Committed by GitHub
Browse files

Merge pull request #256 from rjeffman/vault_fail_temp_kinit

Fixes usage of Kerberos credentials on Vault module.
parents 84d8fc0c 703ee1c9
No related branches found
No related tags found
No related merge requests found
......@@ -463,6 +463,9 @@ def main():
if not valid_creds(ansible_module, ipaadmin_principal):
ccache_dir, ccache_name = temp_kinit(ipaadmin_principal,
ipaadmin_password)
# Need to set krb5 ccache name, due to context='ansible-freeipa'
if ccache_name is not None:
os.environ["KRB5CCNAME"] = ccache_name
api_connect(context='ansible-freeipa')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment