Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
0611704c
Commit
0611704c
authored
7 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
library/ipatest.py: Fix krb5_keytab_ok detection to work always
parent
92b824d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/ipatest.py
+5
-5
5 additions, 5 deletions
library/ipatest.py
with
5 additions
and
5 deletions
library/ipatest.py
+
5
−
5
View file @
0611704c
...
...
@@ -183,7 +183,7 @@ def main():
host_principal
=
'
host/%s@%s
'
%
(
hostname
,
realm
)
sssd
=
True
krb5_keytab_ok
=
Tru
e
krb5_keytab_ok
=
Fals
e
try
:
(
krb_fd
,
krb_name
)
=
tempfile
.
mkstemp
()
os
.
close
(
krb_fd
)
...
...
@@ -208,10 +208,9 @@ def main():
paths
.
IPA_DNS_CCACHE
,
config
=
krb_name
,
attempts
=
kinit_attempts
)
krb5_keytab_ok
=
True
except
gssapi
.
exceptions
.
GSSError
as
e
:
# failure to get ticket makes it impossible to login and bind
# from sssd to LDAP, abort installation and rollback changes
krb5_keytab_ok
=
False
pass
finally
:
try
:
...
...
@@ -219,7 +218,8 @@ def main():
except
OSError
:
module
.
fail_json
(
msg
=
"
Could not remove %s
"
%
krb_name
)
module
.
exit_json
(
changed
=
False
,
krb5_keytab_ok
=
krb5_keytab_ok
)
module
.
exit_json
(
changed
=
False
,
krb5_keytab_ok
=
krb5_keytab_ok
)
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment