Im trying to migrate an Open LDAP Server from Ubuntu LTS to Arch Linux. So I followed the Guid by Alex Pánek.
So first I backuped the Databases from the Ubuntu Maschine:
ubuntu$ sudo slapcat -b cn=config -l cn=config.master.ldif
ubuntu$ sudo slapcat -l dc=example-dc=com.ldif
After that I copied this Files an the SSL Certificates to
the clean Open LDAP Server on Arch Linux. Regarding that
Arch uses not the same Directory Structure as Ubuntu. I've
edited all Directory Entries in the Configuration Export
from /etc/ldap
to /etc/openldap/
and
/var/lib/ldap/
to /var/lib/openldap/
.
Then I startet the Import this works fine:
arch$ sudo slapadd -F /etc/openldap/slapd.d -b cn=config -l cn=config.master.ldif
_#################### 100.00% eta none elapsed none fast!
Closing DB...
After the Import I can start the LDAP Server normally. I've stopped the Server again and tried to Import the Domain Database with:
arch$ sudo slapadd -F /etc/openldap/slapd.d -b dc=example,dc=com -l ~/dc=example-dc=com.ldif
571e4715 hdb_monitor_db_open: monitoring disabled; configure monitor database to enable
slapadd: line 1: database #1 (dc=example,dc=com) not configured to hold "dc=com"; no database configured for that naming context
_ 2.36% eta none elapsed none spd 3.9 M/s
Closing DB...
I've no Idea where this Error is coming from and how to solve it.