Implement posix group for all users in LDAP.
This commit is contained in:
parent
43cb4dcf13
commit
8c896c90e6
2 changed files with 36 additions and 0 deletions
|
@ -92,6 +92,16 @@
|
|||
bind_dn: "cn=admin,{{ basedn }}"
|
||||
bind_pw: "{{ ldap_admin_pwd['content'] | b64decode | replace('\n', '') }}"
|
||||
|
||||
- name: add group for all ldapusers
|
||||
ldap_entry:
|
||||
dn: "cn=ldapuser,ou=groups,{{ basedn }}"
|
||||
objectClass:
|
||||
- posixGroup
|
||||
attributes:
|
||||
gidNumber: 18000
|
||||
bind_dn: "cn=admin,{{ basedn }}"
|
||||
bind_pw: "{{ ldap_admin_pwd['content'] | b64decode | replace('\n', '') }}"
|
||||
|
||||
- name: provide simple script to manage ldap/kdc
|
||||
template:
|
||||
src: debian-lan.j2
|
||||
|
@ -128,6 +138,15 @@
|
|||
bind_pw: "{{ ldap_admin_pwd['content'] | b64decode | replace('\n', '') }}"
|
||||
when: foo_pwd is defined and foo_pwd | length > 0
|
||||
|
||||
- name: add dummy user foo to group ldapuser
|
||||
ldap_attr:
|
||||
dn: "cn=ldapuser,ou=groups,{{ basedn }}"
|
||||
name: memberUid
|
||||
values: foo
|
||||
bind_dn: "cn=admin,{{ basedn }}"
|
||||
bind_pw: "{{ ldap_admin_pwd['content'] | b64decode | replace('\n', '') }}"
|
||||
when: foo_pwd is defined and foo_pwd | length > 0
|
||||
|
||||
- name: allow ldap service in firewalld
|
||||
firewalld:
|
||||
zone: internal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue