community.general.udm_user – Manage posix users on a univention corporate server
community.general.udm_user – Manage posix users on a univention corporate server
Note
This plugin is part of the community.general collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.udm_user
.
Synopsis
- This module allows to manage posix users on a univention corporate server (UCS). It uses the python API of the UCS to create a new object or edit it.
Requirements
The below requirements are needed on the host that executes this module.
- Python >= 2.6
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
birthday string |
Birthday | |
city string |
City of users business address. | |
country string |
Country of users business address. | |
department_number string |
Department number of users business address.
| |
description string |
Description (not gecos) | |
display_name string |
Display name (not gecos)
| |
list / elements=string |
Default: [""] |
A list of e-mail addresses. |
employee_number string |
Employee number
| |
employee_type string |
Employee type
| |
firstname string |
First name. Required if | |
gecos string |
GECOS | |
groups list / elements=string |
Default: [] |
POSIX groups, the LDAP DNs of the groups will be found with the LDAP filter for each group as $GROUP: |
home_share string |
Home NFS share. Must be a LDAP DN, e.g.
| |
home_share_path string |
Path to home NFS share, inside the homeShare.
| |
home_telephone_number list / elements=string |
Default: [] |
List of private telephone numbers.
|
homedrive string |
Windows home drive, e.g. | |
lastname string |
Last name. Required if | |
mail_alternative_address list / elements=string |
Default: [] |
List of alternative e-mail addresses.
|
mail_home_server string |
FQDN of mail server
| |
mail_primary_address string |
Primary e-mail address
| |
mobile_telephone_number list / elements=string |
Default: [] |
Mobile phone number
|
organisation string |
Organisation
| |
ou string |
Default: "" |
Organizational Unit inside the LDAP Base DN, e.g. |
overridePWHistory boolean |
|
Override password history
|
overridePWLength boolean |
|
Override password check
|
pager_telephonenumber list / elements=string |
Default: [] |
List of pager telephone numbers.
|
password string |
Password. Required if | |
phone list / elements=string |
List of telephone numbers. | |
position string |
Default: "" |
Define the whole position of users object inside the LDAP tree, e.g. |
postcode string |
Postal code of users business address. | |
primary_group string |
Primary group. This must be the group LDAP DN. If not specified, it defaults to
| |
profilepath string |
Windows profile directory | |
pwd_change_next_login string |
|
Change password on next login.
|
room_number string |
Room number of users business address.
| |
samba_privileges list / elements=string |
Samba privilege, like allow printer administration, do domain join.
| |
samba_user_workstations list / elements=string |
Allow the authentication only on this Microsoft Windows host.
| |
sambahome string |
Windows home path, e.g. | |
scriptpath string |
Windows logon script. | |
secretary list / elements=string |
Default: [] |
A list of superiors as LDAP DNs. |
serviceprovider list / elements=string |
Default: [""] |
Enable user for the following service providers. |
shell string |
Default: "/bin/bash" |
Login shell |
state string |
|
Whether the user is present or not. |
street string |
Street of users business address. | |
subpath string |
Default: "cn=users" |
LDAP subpath inside the organizational unit, e.g. |
title string |
Title, e.g. | |
unixhome string |
Unix home directory If not specified, it defaults to | |
update_password string |
|
|
userexpiry string |
Account expiry date, e.g. If not specified, it defaults to the current day plus one year. | |
username string / required |
User name
|
Examples
- name: Create a user on a UCS
community.general.udm_user:
name: FooBar
password: secure_password
firstname: Foo
lastname: Bar
- name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
community.general.udm_user:
name: foo
password: secure_password
firstname: Foo
lastname: Bar
ou: school
subpath: 'cn=teachers,cn=users'
# or define the position
- name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
community.general.udm_user:
name: foo
password: secure_password
firstname: Foo
lastname: Bar
position: 'cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com'
Authors
- Tobias Rüetschi (@keachi)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/udm_user_module.html