mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-28 18:34:44 +00:00
library/ipajoin.py: Fixed comment for missing keytab
This commit is contained in:
@@ -333,7 +333,7 @@ def main():
|
|||||||
changed = True
|
changed = True
|
||||||
module.log("Enrolled in IPA realm %s" % realm)
|
module.log("Enrolled in IPA realm %s" % realm)
|
||||||
|
|
||||||
# Fix missing krb5.keytab file for already joined host
|
# Fail for missing krb5.keytab on already joined host
|
||||||
if already_joined and not os.path.exists(paths.KRB5_KEYTAB):
|
if already_joined and not os.path.exists(paths.KRB5_KEYTAB):
|
||||||
module.fail_json(msg="krb5.keytab missing! Retry with ipaclient_force_join=yes to generate a new one.")
|
module.fail_json(msg="krb5.keytab missing! Retry with ipaclient_force_join=yes to generate a new one.")
|
||||||
|
|
||||||
@@ -351,8 +351,8 @@ def main():
|
|||||||
attempts=kinit_attempts)
|
attempts=kinit_attempts)
|
||||||
env['KRB5CCNAME'] = os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE
|
env['KRB5CCNAME'] = os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE
|
||||||
except gssapi.exceptions.GSSError as e:
|
except gssapi.exceptions.GSSError as e:
|
||||||
# failure to get ticket makes it impossible to login and bind
|
# failure to get ticket makes it impossible to login and
|
||||||
# from sssd to LDAP, abort installation and rollback changes
|
# bind from sssd to LDAP, abort installation
|
||||||
module.fail_json(msg="Failed to obtain host TGT: %s" % e)
|
module.fail_json(msg="Failed to obtain host TGT: %s" % e)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user