Backing Up and Restoring Data > Migrating OpenLDAP: Linux to Windows
  
Version 10.0.01
Migrating OpenLDAP: Linux to Windows
To migrate the OpenLDAP database from Linux to Windows, complete the following steps.
On your new Windows Portal Server
1. Verify that the file LDAP.LDIF has been copied to the new Windows Portal Server.
2. Log in as a Local Administrator user.
3. Execute
c:/opt/aptare/utils/stopldap.bat
4. Make a backup of the contents of the directory:
c:/opt/openldap/var/openldap-data
5. Delete the contents of the directory:
c:/opt/openldap/var/openldap-data/*
6. Execute:
c:/opt/openldap/slapadd –f c:/opt/openldap/slapd.conf –l <full_path_to ldap_ldif>
7. Verify that the database was imported successfully by executing the command:
c:/opt/openldap/slapcat –f c:/opt/openldap/slapd.conf
This will print to the screen a dump of your entire LDAP database.
8. Restart the OpenLDAP service using the command:
c:/opt/aptare/utils/startldap.bat