Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_domain_user_groups.rst

raw
1 .. _ome_domain_user_groups_module:
2
3
4 ome_domain_user_groups -- Create, modify, or delete an Active Directory/LDAP user group on OpenManage Enterprise and OpenManage Enterprise Modular
5 ==================================================================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to create, modify, or delete an Active Directory/LDAP user group on OpenManage Enterprise and OpenManage Enterprise Modular.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 state (optional, str, present)
31 \ :literal:`present`\ imports or modifies the Active Directory/LDAP user group.
32
33 \ :literal:`absent`\ deletes an existing Active Directory/LDAP user group.
34
35
36 group_name (True, str, None)
37 The desired Active Directory/LDAP user group name to be imported or removed.
38
39 Examples for user group name: Administrator or Account Operators or Access Control Assistance Operator.
40
41 \ :emphasis:`group\_name`\ value is case insensitive.
42
43
44 role (optional, str, None)
45 The desired roles and privilege for the imported Active Directory/LDAP user group.
46
47 OpenManage Enterprise Modular Roles: CHASSIS ADMINISTRATOR, COMPUTE MANAGER, STORAGE MANAGER, FABRIC MANAGER, VIEWER.
48
49 OpenManage Enterprise Roles: ADMINISTRATOR, DEVICE MANAGER, VIEWER.
50
51 \ :emphasis:`role`\ value is case insensitive.
52
53
54 directory_name (optional, str, None)
55 The directory name set while adding the Active Directory/LDAP.
56
57 \ :emphasis:`directory\_name`\ is mutually exclusive with \ :emphasis:`directory\_id`\ .
58
59
60 directory_type (optional, str, AD)
61 Type of the account.
62
63
64 directory_id (optional, int, None)
65 The ID of the Active Directory/LDAP.
66
67 \ :emphasis:`directory\_id`\ is mutually exclusive with \ :emphasis:`directory\_name`\ .
68
69
70 domain_username (optional, str, None)
71 Active Directory/LDAP domain username.
72
73 Example: username@domain or domain\\username.
74
75
76 domain_password (optional, str, None)
77 Active Directory/LDAP domain password.
78
79
80 hostname (True, str, None)
81 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
82
83
84 username (False, str, None)
85 OpenManage Enterprise or OpenManage Enterprise Modular username.
86
87 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
88
89 Example: export OME\_USERNAME=username
90
91
92 password (False, str, None)
93 OpenManage Enterprise or OpenManage Enterprise Modular password.
94
95 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
96
97 Example: export OME\_PASSWORD=password
98
99
100 x_auth_token (False, str, None)
101 Authentication token.
102
103 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
104
105 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
106
107
108 port (optional, int, 443)
109 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
110
111
112 validate_certs (optional, bool, True)
113 If \ :literal:`false`\ , the SSL certificates will not be validated.
114
115 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
116
117 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
118
119
120 ca_path (optional, path, None)
121 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
122
123
124 timeout (optional, int, 30)
125 The socket level timeout in seconds.
126
127
128
129
130
131 Notes
132 -----
133
134 .. note::
135 - This module supports \ :literal:`check\_mode`\ and idempotency.
136 - Run this module from a system that has direct access to OpenManage Enterprise or OpenManage Enterprise Modular.
137
138
139
140
141 Examples
142 --------
143
144 .. code-block:: yaml+jinja
145
146
147 ---
148 - name: Create Active Directory user group
149 dellemc.openmanage.ome_domain_user_groups:
150 hostname: "192.168.0.1"
151 username: "username"
152 password: "password"
153 ca_path: "/path/to/ca_cert.pem"
154 state: present
155 group_name: account operators
156 directory_name: directory_name
157 role: administrator
158 domain_username: username@domain
159 domain_password: domain_password
160
161 - name: Update Active Directory user group
162 dellemc.openmanage.ome_domain_user_groups:
163 hostname: "192.168.0.1"
164 username: "username"
165 password: "password"
166 ca_path: "/path/to/ca_cert.pem"
167 state: present
168 group_name: account operators
169 role: viewer
170
171 - name: Delete active directory user group
172 dellemc.openmanage.ome_domain_user_groups:
173 hostname: "192.168.0.1"
174 username: "username"
175 password: "password"
176 ca_path: "/path/to/ca_cert.pem"
177 state: absent
178 group_name: administrators
179
180 - name: Import LDAP directory group.
181 dellemc.openmanage.ome_domain_user_groups:
182 hostname: "192.168.0.1"
183 username: "username"
184 password: "password"
185 ca_path: "/path/to/ca_cert.pem"
186 directory_type: LDAP
187 state: present
188 group_name: account operators
189 directory_name: directory_name
190 role: administrator
191 domain_username: username@domain
192 domain_password: domain_password
193
194 - name: Remove LDAP directory group.
195 dellemc.openmanage.ome_domain_user_groups:
196 hostname: "192.168.0.1"
197 username: "username"
198 password: "password"
199 ca_path: "/path/to/ca_cert.pem"
200 state: absent
201 group_name: account operators
202
203
204
205 Return Values
206 -------------
207
208 msg (always, str, Successfully imported the Active Directory/LDAP user group.)
209 Overall status of the Active Directory/LDAP user group operation.
210
211
212 domain_user_status (When I(state) is C(present)., dict, {'Description': None, 'DirectoryServiceId': 16097, 'Enabled': True, 'Id': '16617', 'IsBuiltin': False, 'IsVisible': True, 'Locked': False, 'Name': 'Account Operators', 'ObjectGuid': 'a491859c-031e-42a3-ae5e-0ab148ecf1d6', 'ObjectSid': None, 'Oem': None, 'Password': None, 'PlainTextPassword': None, 'RoleId': '16', 'UserName': 'Account Operators', 'UserTypeId': 2})
213 Details of the domain user operation, when \ :emphasis:`state`\ is \ :literal:`present`\ .
214
215
216 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
217 Details of the HTTP Error.
218
219
220
221
222
223 Status
224 ------
225
226
227
228
229
230 Authors
231 ~~~~~~~
232
233 - Felix Stephen (@felixs88)
234 - Abhishek Sinha (@Abhishek-Dell)
235 - Krunal Thakkar (@Krunal-Thakkar)
236