mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 22:34:40 +00:00
Merge pull request #256 from rjeffman/vault_fail_temp_kinit
Fixes usage of Kerberos credentials on Vault module.
This commit is contained in:
@@ -463,6 +463,9 @@ def main():
|
|||||||
if not valid_creds(ansible_module, ipaadmin_principal):
|
if not valid_creds(ansible_module, ipaadmin_principal):
|
||||||
ccache_dir, ccache_name = temp_kinit(ipaadmin_principal,
|
ccache_dir, ccache_name = temp_kinit(ipaadmin_principal,
|
||||||
ipaadmin_password)
|
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')
|
api_connect(context='ansible-freeipa')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user