mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
win_domain_user allow to update generic attributes (#34558)
* win_domain_user allow to update generic attributes Signed-off-by: Marko Koehne <marko@mkoehne.de> * win_domain_user.py fixed indentation Signed-off-by: Marko Koehne <marko@mkoehne.de> * win_domain_user.py attributes add version_added Signed-off-by: Marko Koehne <marko@mkoehne.de> * win_domain_user.p1 removed attributes from result Signed-off-by: Marko Koehne <marko@mkoehne.de> * moved run_change outside of if statement
This commit is contained in:
parent
76586cfd0b
commit
b5579f55cc
2 changed files with 53 additions and 1 deletions
|
@ -148,6 +148,13 @@ options:
|
|||
if you specify a path on an existing user, the user's path will not
|
||||
be updated - you must delete (e.g., state=absent) the user and
|
||||
then re-add the user with the appropriate path.
|
||||
attributes:
|
||||
description:
|
||||
- A dict of custom LDAP attributes to set on the user.
|
||||
- This can be used to set custom attributes that are not exposed as module
|
||||
parameters, e.g. C(telephoneNumber).
|
||||
- See the examples on how to format this parameter.
|
||||
version_added: "2.5"
|
||||
notes:
|
||||
- Works with Windows 2012R2 and newer.
|
||||
- If running on a server that is not a Domain Controller, credential
|
||||
|
@ -175,6 +182,8 @@ EXAMPLES = r'''
|
|||
state_province: IN
|
||||
postal_code: 12345
|
||||
country: US
|
||||
attributes:
|
||||
telephoneNumber: 555-123456
|
||||
|
||||
- name: Ensure user bob is present in OU ou=test,dc=domain,dc=local
|
||||
win_domain_user:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue