I recently migrated the LDAP database from a old server to a new, fresh, powerful engine running on CentOS.
The hardest part of the migration was, without any doubt, the LDAP part. There’s nearly no documentation so here’s a little howto.
Open file slapd.conf located under /etc/openldap/slapd.conf. In debian based systems, this file is located under /etc/ldap/slapd.conf.
There are two ways of copying LDAP data. We will check out by ldapsearch/ldapadd command.
By using ldapsearch/ldapadd command, we do not need to stop slapd daemon on server. So we can extract and migrate data with zero downtime.