I need to move my ldap server to a newer one. It is currently running on Ubuntu 7.04 server. Is there a way of backing up this server, installing a fresh openldap server on a newer Ubuntu 11.04 server, and restoring the old database to it?

I've tried backing up to a LDIF and restoring it to a new openldap server but I guess it wasn't able to restore the configuration with it.

Any help is appreciated, thanks

link|improve this question
1  
Backing up to LDIF and restoring it should be the simplest way. Quickest way to get your answer would probably be to post exactly what went wrong here. – Phil Jun 7 '11 at 22:57
Also make sure you have the same schema. – Mircea Vutcovici Jun 8 '11 at 0:46
Did you do the LDIF dump using ldapsearch or slapcat? Make sure to use slapcat/slapadd for backup/restore. – ptman Jun 8 '11 at 2:27
feedback

2 Answers

Your configuration should be in just one file. On 7.04, I believe you had a /etc/ldap/ldap.conf, where your config is. You should be able to move the config file to a new system, and either start openldap with this config file with the -f argument, or you could you also convert to using a dynamic backend, which you probably will not want to do, because of added complexity. Since you were able to dump your contents with slapcat and can import them, the only missing bit is your config file.

link|improve this answer
feedback

If you're moving from a 32bit machine to a 64bit machine, OpenLDAP's data may not be compatible. I was not able to find documentation in OpenLDAP's docs for the process of migrating data, but the Zimbra docs might be able to point you in the right direction: http://wiki.zimbra.com/wiki/Network_Edition:_Moving_from_32-bit_to_64-bit_Server

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.