Share via

Import or export directory objects using ldifde

Applies To: Windows Server 2003 R2

To import or export directory objects using ldifde

  1. Open an ADAM tools command prompt.

  2. Do one of the following:

    • To import directory objects, at the command prompt, type:

      ldifde -i -f filename -s servername:port -m -a username domain password

    • To export directory objects, at the command prompt, type:

      ldifde -e -f filename -s servername:port -m -a username domain password


  • To open an ADAM tools command prompt, click Start, point to All Programs, point to ADAM, and then click ADAM Tools Command Prompt.

  • The following table contains the parameters in step 2 and other commonly used ldifde parameters. For more information about ldifde parameters, type ldifde /? at a command prompt, or see Related Topics.

    Parameter Description


    Perform an import.


    Perform an export.


    File to import or export.


    Host name and port of the ADAM instance.


    Ignore (that is, do not import or export) attributes that are only used by Active Directory.

    You can use this parameter when exporting directory objects from an existing Active Directory forest and importing them into ADAM.


    Account credentials. If they are not provided, ldifde uses the credentials of the currently logged on user.


    Allows importing of passwords using simple authentication and security layer (SASL) encryption.

    -c String1 String2

    Replaces all occurrences of String1 with String2. With ADAM, you can use the constants #schemaNamingContext and #configurationNamingContext in place of the distinguished names of the schema directory partition and configuration directory partitions when replacing strings in .ldf files.

  • For specific information about importing the user class definitions that are supplied with ADAM, see Related Topics.

  • For complete syntax information for the ldifde command, see Related Topics.

See Also


Import the user classes supplied with ADAM
ADAM Ldifde
ADAM Csvde