Skip to content
Snippets Groups Projects
Commit f44e33c6 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Allow the use of multiple values with auth_ind variable.

This patch changes auth_ind variable to receive a list of values
instead of a single one, so that more than one value can be set
at once.

Tests have been updated to reflect the change.
parent 6b5f0349
No related branches found
No related tags found
No related merge requests found
...@@ -324,7 +324,7 @@ def init_ansible_module(): ...@@ -324,7 +324,7 @@ def init_ansible_module():
default=None), default=None),
pac_type=dict(type="list", aliases=["ipakrbauthzdata"], pac_type=dict(type="list", aliases=["ipakrbauthzdata"],
choices=["MS-PAC", "PAD", "NONE"]), choices=["MS-PAC", "PAD", "NONE"]),
auth_ind=dict(type="str", auth_ind=dict(type="list",
aliases=["krbprincipalauthind"], aliases=["krbprincipalauthind"],
choices=["otp", "radius", "pkinit", "hardened"]), choices=["otp", "radius", "pkinit", "hardened"]),
skip_host_check=dict(type="bool"), skip_host_check=dict(type="bool"),
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
- PAD - PAD
auth_ind: otp auth_ind: otp
skip_host_check: no skip_host_check: no
force: no force: yes
requires_pre_auth: yes requires_pre_auth: yes
ok_as_delegate: no ok_as_delegate: no
ok_to_auth_as_delegate: no ok_to_auth_as_delegate: no
...@@ -475,6 +475,26 @@ ...@@ -475,6 +475,26 @@
register: result register: result
failed_when: result.changed failed_when: result.changed
- name: Ensure service is present, with multiple auth_ind values.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: otp,radius
skip_host_check: no
force: yes
register: result
failed_when: not result.changed
- name: Ensure service is present, with multiple auth_ind values, again.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: otp,radius
skip_host_check: no
force: yes
register: result
failed_when: result.changed
# cleanup # cleanup
- name: Ensure services are absent. - name: Ensure services are absent.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment