community.general.ldap_attrs attributes

This commit is contained in:
Denis Knauf 2023-10-20 00:52:43 +02:00
parent 704585859f
commit 4a3908827d

View file

@ -10,10 +10,10 @@
- name: fix acl
community.general.ldap_attrs:
name: olcAccess
dn: olcDatabase={1}mdb,cn=config
state: exact
values:
attributes:
olcAccess:
- >-
{0}to attrs=userPassword,shadowLastChange
by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth write
@ -29,20 +29,16 @@
- name: set crypto
community.general.ldap_attrs:
dn: cn=config
name: "{{item.key}}"
state: exact
values: "{{item.value}}"
with_dict:
attributes:
olcPasswordHash: '{CRYPT}'
olcPasswordCryptSaltFormat: "$6$rounds=8000$%.16s"
- name: set base DN
community.general.ldap_attrs:
dn: 'olcDatabase={{"{"+(ldap_database_index|default(1)|string)+"}"}}mdb,cn=config'
name: "{{item.key}}"
state: exact
values: "{{item.value}}"
with_dict:
attributes:
olcSuffix: "{{ldap_basedn}}"
olcRootDN: "cn=root,{{ldap_basedn}}"