Import the user classes supplied with ADAM

Applies To: Windows Server 2003 R2

To import the user classes supplied with ADAM

  1. Open an ADAM tools command prompt.

  2. At the command prompt, type:

    ldifde -i -f  filename -s computername:port [-b username domain password] -k -j . -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext

    where filename represents the name of one of the .ldf files that is supplied with ADAM (ms-User.ldf, ms-InetOrgPerson.ldf, or ms-UserProxy.ldf), computername:port represents the computer name and port number of an ADAM instance, and username domain password represents the account with which to run the command.

    You should see results similar to the following:

    Connecting to "localhost"
    Logging in as current user using SSPI
    Importing directory from file "ms-user.ldf"
    Loading entries................................
    65 entries modified successfully.
    
    The command has completed successfully
    

Notes

  • 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

    -i

    Perform an import.

    -f

    File to import or export.

    -s

    Host name and port of the ADAM instance.

    -b

    Security credentials to use during the operation.

    -k

    Continue the operation in the event of errors.

    -j

    Create a log file in the specified directory. In this case, the current (".") directory.

    -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext

    Do not modify this string.

    The -c parameter replaces a specified string in the .ldf file with a different string during import. The distinguished name that is specified in the .ldf file (for example, CN=Schema,CN=Configuration,DC=X) is replaced with the distinguished name of the schema directory partition for your particular ADAM instance, as passed by the #schemaNamingContext constant.

    Replace ... With ...

    computername:port

    The host name and port number of your ADAM instance. You can use "localhost" for computername if you are administering the local computer.

    username domain password

    The account, domain, and password of an account being used as an ADAM administrator account.

  • ADAM includes three .ldf files containing user classes that you can import. These files are ms-User.ldf, ms-InetOrgPerson.ldf, and ms-UserProxy.ldf, and they are located in the %windir%\adam directory.

  • As an alternative to using ldifde, you can import the optional ADAM user classes during ADAM setup. For more information, see Related Topics.

  • If you do not specify user credentials using the -b parameter, ldifde uses the credentials of the currently logged on user.

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

See Also

Concepts

Understanding ADAM users and groups
ADAM Ldifde
Importing LDIF files during setup