Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
samba
Commits
3d6c4152
Commit
3d6c4152
authored
May 14, 2017
by
Lars Beckers
Browse files
ad-auth: use pexpect for kinit if possible
parent
6105b3d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ad-auth/tasks/sssd.yml
View file @
3d6c4152
...
...
@@ -26,6 +26,16 @@
command
:
realm discover -v "{{ domain }}"
-
name
:
get a kerberos ticket
shell
:
echo "{{ lookup('passwordstore', 'samba-admin') }}" | kinit Administrator
when
:
debian_version == "jessie"
-
name
:
ensure pexpect is installed
apt
:
name=python-pexpect state=installed
when
:
debian_version == "stretch"
-
name
:
get a kerberos ticket
expect
:
command
:
kinit Administrator
responses
:
"
Password
for
Administrator@{{
domain.upper()
}}"
:
"
{{
lookup('passwordstore',
'samba-admin')
}}"
when
:
debian_version == "stretch"
-
name
:
leave any other realm
command
:
realm leave
register
:
result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment