Installation and Upgrade > Upgrade Guide > The Windchill Upgrade Procedure > Stage the Source Data for the Upgrade > Importing Source LDAP Using the Command Line
  
Importing Source LDAP Using the Command Line
Import the LDIF file, obtained from the export command, which contains both source and target LDAP data. Make sure that your Windchill Directory Server server is up and running before you execute the import command.
Use the following command to import your LDAP:
Windows
<Windchill_Installation_Directory>\WindchillDS\server\bat\import-ldif.bat --ldifFile sourceLdap.ldif --backendID userRoot --hostname <machine_host_name> --port <port_number> --bindDN <Administrative_User> --bindPassword <Administrative_Password> --trustAll --noPropertiesFile --rejectFile <rejected_filename> --skipFile <skipped_filename>
UNIX
<Windchill_Installation_Directory>/WindchillDS/server/bin/import-ldif --ldifFile sourceLdap.ldif --backendID userRoot --hostname <machine_host_name> --port <port_number> --bindDN <Administrative_User> --bindPassword <Administrative_Password> --trustAll --noPropertiesFile --rejectFile <rejected_filename> --skipFile <skipped_filename>
For example:
<Windchill_Installation_Directory>\WindchillDS\server\bat\import-ldif --ldifFile sourceLdap.ldif --backendID userRoot --hostname sakulkarni2l --port 4444 --bindDN cn=Manager --bindPassword admin --trustAll --noPropertiesFile --rejectFile C:\tmp\rejected.txt --skipFile C:\tmp\skipped.txt
After the import is successfully completed, verify the rejected and skipped file entries. Ensure that all the entries are indeed successfully imported and only the duplicate entries are rejected.
Configuring for an Enterprise LDAP
If your site uses a corporate, enterprise LDAP, configure the source system JNDI adapter to point to the search base DN that is imported into Windchill Directory Server.