I tried the option with deleting mdb files the day before yesterday. It really works. However, we need to bring up the openldap service with replication in the k8s cluster. Therefore, low-level operations are unacceptable.
26.04.2021 18:43, Howard Chu hyc@symas.com пишет:
Quanah Gibson-Mount wrote:
--On Monday, April 26, 2021 10:46 AM -0700 Quanah Gibson-Mount quanah@symas.com wrote:
--On Saturday, April 24, 2021 11:04 PM +0300 Николай Данилов niko@dwolfix.ru wrote:
When installing openldap with database mdb, root entry cannot be deleted.
This is a bug with back-mdb that was not present with back-bdb/hdb. When you originally opened your issue in the bug tracker, you said you couldn't delete the rootDSE, which would be correct. This is an issue with deleting the root of the database DIT, which is different.
As a workaround, you can stop slapd and delete the database files (data.mdb, lock.mdb) in your configured path for where they are stored for that specific database.
No need to stop slapd - just change the directory path in cn=config to point to a new location. Then delete the old files.
Then add your new set of objects.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/