Backing Up and Restoring Data > Migrating OpenLDAP: Windows to Linux
  
Version 10.3.00P13
Migrating OpenLDAP: Windows to Linux
To migrate the OpenLDAP database from Windows to Linux, complete the following steps.
On your current Windows production Portal Server
1. Log in to your Windows production Portal server.
2. Open a DOS command window for execution of the commands in the next steps.
3. cd C:\opt\openldap
4. slapcat –f slapd.conf –l ldap.ldif
This will create a dump of your entire LDAP database into a file: LDAP.LDIF
5. Copy this file to your new Linux Portal Server.
On your new Linux Portal Server
1. Verify that the file called LDAP.LDIF has been copied to the new Linux Portal Server.
2. Log in as root.
3. cd /opt/aptare/bin
4. ./openldap stop
5. Make a backup of the contents of the directory:
/opt/openldap/var/openldap-data
6. rm –f /opt/openldap/var/openldap-data/*
7. /opt/openldap/sbin/slapadd –f /opt/openldap/etc/openldap/slapd.conf –l <full_path_to ldap_ldif>
8. Verify that the database was imported successfully by executing the command:
/opt/openldap/sbin/slapcat –f /opt/openldap/etc/openldap/slapd.conf
This will print to the screen a dump of your entire LDAP database.
9. Restart the OpenLDAP service using the command:
/opt/aptare/bin/openldap start