openldap issueshttps://git.cccv.de/infra/ansible/roles/openldap/-/issues2021-09-10T18:20:48Zhttps://git.cccv.de/infra/ansible/roles/openldap/-/issues/1Administrator entry is no longer auto-created in Debian Bullseye or later2021-09-10T18:20:48ZJulianAdministrator entry is no longer auto-created in Debian Bullseye or laterhttps://wiki.debian.org/LDAP/OpenLDAPSetup
> In Buster and earlier releases, an administrator entry is created under the BaseDN (e.g. cn=admin,dc=example,dc=com) as part of the initial database creation:
> [...]
> While no such entry is...https://wiki.debian.org/LDAP/OpenLDAPSetup
> In Buster and earlier releases, an administrator entry is created under the BaseDN (e.g. cn=admin,dc=example,dc=com) as part of the initial database creation:
> [...]
> While no such entry is present after installing slapd in later releases:
See ansible error in [#31950](https://git.cccv.de/uffd/docker-images/-/jobs/31950):
```
TASK [openldap : set admin ( cn=admin,dc=example,dc=com ) password on user namespace"] ***
task path: /openldap/tasks/main.yml:129
The full traceback is:
[...]
Traceback (most recent call last):
File "/tmp/ansible_ldap_passwd_payload_e524zuxv/ansible_ldap_passwd_payload.zip/ansible_collections/community/general/plugins/modules/ldap_passwd.py", line 116, in passwd_set
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 661, in passwd_s
return self.extop_result(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 579, in extop_result
resulttype,msg,msgid,respctrls,respoid,respvalue = self.result4(msgid,all=1,timeout=self.timeout,add_ctrls=1,add_intermediates=1,add_extop=1)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 758, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 331, in _ldap_call
reraise(exc_type, exc_value, exc_traceback)
File "/usr/lib/python3/dist-packages/ldap/compat.py", line 44, in reraise
raise exc_value
File "/usr/lib/python3/dist-packages/ldap/ldapobject.py", line 315, in _ldap_call
result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}
fatal: [localhost]: FAILED! => {
"changed": false,
"details": "{'desc': 'No such object'}",
"invocation": {
"module_args": {
"bind_dn": null,
"bind_pw": "",
"dn": "cn=admin,dc=example,dc=com",
"passwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"referrals_chasing": "anonymous",
"sasl_class": "external",
"server_uri": "ldapi:///",
"start_tls": false,
"validate_certs": true
}
},
"msg": "Unable to set password"
}
```