Skip to content

Files

Latest commit

 

History

History
374 lines (311 loc) · 11.8 KB

cyberark_authentication.py

File metadata and controls

374 lines (311 loc) · 11.8 KB
 
Sep 9, 2019
Sep 9, 2019
1
2
#!/usr/bin/python
# Copyright: (c) 2017, Ansible Project
Sep 22, 2019
Sep 22, 2019
3
4
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
Sep 9, 2019
Sep 9, 2019
5
Feb 4, 2021
Feb 4, 2021
6
Sep 9, 2019
Sep 9, 2019
7
8
__metaclass__ = type
Sep 21, 2019
Sep 21, 2019
9
10
11
12
13
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "certified",
}
Sep 9, 2019
Sep 9, 2019
14
Mar 12, 2021
Mar 12, 2021
15
DOCUMENTATION = """
Sep 9, 2019
Sep 9, 2019
16
17
---
module: cyberark_authentication
Nov 20, 2019
Nov 20, 2019
18
short_description: CyberArk Authentication using PAS Web Services SDK.
Sep 9, 2019
Sep 9, 2019
19
author:
Sep 22, 2019
Sep 22, 2019
20
21
- Edward Nunez (@enunez-cyberark) CyberArk BizDev
- Cyberark Bizdev (@cyberark-bizdev)
Jul 6, 2020
Jul 6, 2020
22
- Edgar Mota
Sep 9, 2019
Sep 9, 2019
23
24
version_added: 2.4
description:
Sep 22, 2019
Sep 22, 2019
25
26
27
28
- Authenticates to CyberArk Vault using Privileged Account Security
Web Services SDK and creates a session fact that can be used by other
modules. It returns an Ansible fact called I(cyberark_session). Every
module can use this fact as C(cyberark_session) parameter.
Sep 9, 2019
Sep 9, 2019
29
30
31
32
33
options:
state:
default: present
choices: [present, absent]
description:
Sep 22, 2019
Sep 22, 2019
34
35
- Specifies if an authentication logon/logoff and a
cyberark_session should be added/removed.
Nov 20, 2019
Nov 20, 2019
36
type: str
Sep 9, 2019
Sep 9, 2019
37
38
39
username:
description:
- The name of the user who will logon to the Vault.
Nov 20, 2019
Nov 20, 2019
40
type: str
Sep 9, 2019
Sep 9, 2019
41
42
43
password:
description:
- The password of the user.
Nov 20, 2019
Nov 20, 2019
44
type: str
Sep 9, 2019
Sep 9, 2019
45
46
new_password:
description:
Sep 22, 2019
Sep 22, 2019
47
48
- The new password of the user. This parameter is optional,
and enables you to change a password.
Nov 20, 2019
Nov 20, 2019
49
type: str
Sep 9, 2019
Sep 9, 2019
50
51
api_base_url:
description:
Sep 22, 2019
Sep 22, 2019
52
53
- A string containing the base URL of the server hosting
CyberArk's Privileged Account Security Web Services SDK.
Nov 20, 2019
Nov 20, 2019
54
type: str
Sep 9, 2019
Sep 9, 2019
55
56
57
58
validate_certs:
type: bool
default: 'yes'
description:
Sep 22, 2019
Sep 22, 2019
59
60
61
- If C(false), SSL certificates will not be validated. This
should only set to C(false) used on personally controlled
sites using self-signed certificates.
Jul 6, 2020
Jul 6, 2020
62
use_ldap_authentication:
Sep 9, 2019
Sep 9, 2019
63
64
65
type: bool
default: 'no'
description:
Jul 6, 2020
Jul 6, 2020
66
67
68
69
70
71
72
73
74
75
76
- Whether or not LDAP will be used.
use_windows_authentication:
type: bool
default: 'no'
description:
- Whether or not Windows will be used.
use_cyberark_authentication:
type: bool
default: 'no'
description:
- Whether or not LDAP will be used.
Sep 9, 2019
Sep 9, 2019
77
78
79
80
use_radius_authentication:
type: bool
default: 'no'
description:
Sep 22, 2019
Sep 22, 2019
81
82
- Whether or not users will be authenticated via a RADIUS
server. Valid values are true/false.
Nov 20, 2019
Nov 20, 2019
83
84
85
86
87
connection_number:
type: int
description:
- To support multiple connections for same user specify
- different value for this parameter.
Sep 9, 2019
Sep 9, 2019
88
89
cyberark_session:
description:
Sep 22, 2019
Sep 22, 2019
90
91
92
- Dictionary set by a CyberArk authentication containing the
different values to perform actions on a logged-on CyberArk
session.
Nov 20, 2019
Nov 20, 2019
93
type: dict
Mar 12, 2021
Mar 12, 2021
94
"""
Sep 9, 2019
Sep 9, 2019
95
Mar 12, 2021
Mar 12, 2021
96
EXAMPLES = """
Sep 22, 2019
Sep 22, 2019
97
- name: Logon - use_shared_logon_authentication
Sep 9, 2019
Sep 9, 2019
98
99
100
101
cyberark_authentication:
api_base_url: "{{ web_services_base_url }}"
use_shared_logon_authentication: yes