Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have ubuntu(8.10) ldap server running. I am migrating from my old servers to ubuntu 10.04.2 server and I have set up almost all freshly on the new servers. How could I perfectly migrate ldap to the new server after installing ldap?.

I found the following to export and import ldap in the google:

slapcat -l master.ldif
slapadd -c -l master.ldif

Is there anything I've to do before/after using those commands?. Any precautions?

EDIT 1: I could not configure ldap server freshly following the link: error:

root@station3:`# ldapadd -D cn=admin,dc=mydomain,dc=com -W -f front-end.ldif 
Enter LDAP Password: 
ldap_bind: Invalid credentials (49)
share|improve this question
After installing ldap when I try to import by slapadd -c -l master.ldif I'm getting following error Available database(s) do not allow slapadd – user3215 Mar 8 '11 at 13:45
Anybody has any idea? – user3215 Mar 9 '11 at 4:47

While I can't remember the exact release, OpenLDAP switched from file-based configuration to LDAP-based config sometime around the '08 releases.

If possible, I would do a test-migration and see (in a controlled environment) if your new server works as expected.

share|improve this answer
You've any idea, I've updated my question! – user3215 Mar 8 '11 at 22:35
No, unfortunately not. Perhaps they can help over at ServerFault? – Morten Siebuhr Mar 14 '11 at 9:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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