I’m facing challenges while trying to configure an OpenLDAP server with an MDB backend. I’ve attempted to use both the version from the package repository and a self-compiled version to ensure that back_mdb is included in slapd, but neither works. Although the config database is accessible and the log does not display any errors, the database file (data.mdb) is created, but my root suffix does not appear and is not writeable. Even a basic configuration from the OpenLDAP administrator’s guide hasn’t solved the problem. Here’s my current configuration:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
database mdb
maxsize 1073741824
suffix "dc=myorg,dc=local"
rootdn "cn=administrator,dc=myorg,dc=local"
rootpw "{SSHA}somehashedpassword"
directory /var/lib/openldap/data
index objectClass eq
access to dn.subtree="ou=employees,dc=myorg,dc=local" by self write by dn="cn=server,ou=users,dc=myorg,dc=local" write by dn="cn=mobile,ou=users,dc=myorg,dc=local" read
access to * by dn="cn=administrator,dc=myorg,dc=local" write by anonymous auth by dn.subtree="ou=users,dc=myorg,dc=local" read by * none
database config
rootdn "cn=administrator,cn=config"
rootpw "{SSHA}somehashedpassword"
Looking for help to resolve this issue.