I started with empty config and empty database with slapd-2.4.38:
# sudo slapadd -F /etc/openldap/slapd.d -n0 -l config.ldif
_#################### 100.00% eta none elapsed none fast!
Closing DB...
I import single object into my catalog:
# cat initial-import.ldif
dn: dc=example,dc=org
dc: example
objectClass: organization
objectClass: dcObject
o: Example
# sudo slapadd -F /etc/openldap/slapd.d -b dc=example,dc=org -l config.ldif
_#################### 100.00% eta none elapsed none fast!
Closing DB...
Trying to check access:
# sudo slapacl -F /etc/openldap/slapd.d -D
uid=zinovik,ou=people,dc=example,dc=org \
-b dc=example,dc=org o/read
authcDN: "uid=zinovik,ou=people,dc=example,dc=org"
52abd7bc mdb_opinfo_get: err MDB_BAD_RSLOT: Invalid reuse of reader
locktable slot(-30783)
read access to o: ALLOWED