Hello,
I start experimenting with Ansible and OpenLDAP. Now I try to set up the overlay "synprov". I noticed that everytime I start my playbook the configuration over the overlay is added to the configuration again and again, so I now have: -------------- # {0}syncprov, {1}mdb, config dn: olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config objectClass: olcOverlayConfig objectClass: olcSyncProvConfig olcOverlay: {0}syncprov olcSpSessionlog: 300
# {1}syncprov, {1}mdb, config dn: olcOverlay={1}syncprov,olcDatabase={1}mdb,cn=config objectClass: olcOverlayConfig objectClass: olcSyncProvConfig olcOverlay: {1}syncprov olcSpSessionlog: 300 --------------
Then I tried to remove one of the entries with "ldapdelete" and got the following error: --------- ldapdelete -Y EXTERNAL -H ldapi:/// "olcOverlay={1}syncprov,olcDatabase={1}mdb,cn=config" SASL/EXTERNAL authentication started SASL username: gidNumber=1001+uidNumber=1001,cn=peercred,cn=external,cn=auth SASL SSF: 0 ldap_delete: Server is unwilling to perform (53) -------------------
How can I remove "dn: olcOverlay={1}syncprov,olcDatabase={1}mdb,cn=config" with ldapdelete? Or is there another way to remove the entry?
Thank's for the any help
Stefan
--On Monday, August 3, 2020 9:36 PM +0200 Stefan Kania stefan@kania-online.de wrote:
Hello,
I start experimenting with Ansible and OpenLDAP. Now I try to set up the overlay "synprov". I noticed that everytime I start my playbook the configuration over the overlay is added to the configuration again and again, so I now have:
How can I remove "dn: olcOverlay={1}syncprov,olcDatabase={1}mdb,cn=config" with ldapdelete?
You can't in 2.4. Delete support is a 2.5 feature.
Or is there another way to remove the entry?
slapcat -n 0, remove the problem entry, re-add with slapadd -n 0
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org