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
<WindchillDS_Installation_Directory>\server\bat\import-ldif.bat --ldifFile
<Output_Dir>\sourceLdap.ldif --backendID userRoot --hostname <Machine_host_name>
--port <port_number> --bindDN <Administrative_User> --bindPassword <Administrative_Password>
--trustAll --noPropertiesFile --rejectFile <Rejected_File_Name> --skipFile <Skipped_File_Name>
UNIX
<WindchillDS_Installation_Directory>/server/bin/import-ldif --ldifFile
<Output_Dir>/sourceLdap.ldif --backendID userRoot --hostname <Machine_host_name>
--port <Administrative_port_number> --bindDN <Administrative_User>
--bindPassword <Administrative_Password> --trustAll --noPropertiesFile
--rejectFile <Rejected_File_Name> --skipFile <Skipped_File_Name>
After the import is successful, verify the Reject and Skip File entries to ensure that all entries are imported successfully and any duplicate entries are rejected.
For example
C:\WindchillDS\server\bat\export-ldif.bat --backendID userRoot --ldifFile C:\tmp\SourceLdap.ldif
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.