Move LDAP Service To New Server

Home » CentOS » Move LDAP Service To New Server
CentOS 2 Comments

On my old CentOS 7 server I had set up a LDAP database for user authentication by other services (the server locally uses normal PAM authenticatin).

I set it up originally from a web page describing how to set up an LDAP server for use with MS Outlook clients (which never worked)

Is there any (easy to follow) instructions anywhere to tell me how to back up this service and restore it onto a new one?

2 thoughts on - Move LDAP Service To New Server

  • This is basically running slapcat on your old server and slapadd on the new one.

    openLDAP config can be either stored as files on disk or inside of the LDAP
    and must be handled separatly.

    best regards Ulf

  • Hi Ulf,

    Thank you for this. Once I stopped Googling ‘move’ and tried backup / restore instead I did manage to find quite a few postings about this. However whenever I tried to follow these postings I came up with errors after completing the move.

    In the end I shut down slapd on both the old and new servers, removed /etc/openLDAP and /var/lib/ldap, and then rsync’d the old files to the new one

    Once this was done, I restarted slapd on the old and new servers and both worked perfectly