1

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.

1
  • I've testet it also with an new Ubuntu installation and I get the same Results
    – tim0_o
    Apr 26, 2016 at 12:59

2 Answers 2

1

In my desperation I removed the first few Lines wich referenced only dc=com. Turns out, that this Lines not really necessary and the Import is now working fine. I've no Idea where this Lines coming from.

1
  • If this resolved your issue please accept your answer by clicking the checkmark. Oct 14, 2016 at 6:51
1

Actually I did it by copying the library from the old server to the new one. I started ldapd and it's just worked fine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .