Export (0) Print
Expand All

Managing Directory Partitions in ADAM

Updated: August 22, 2005

Applies To: Windows Server 2003 R2

The following exercises help you become familiar with an additional ADAM administration tool, Ldp.exe. Ldp is installed as part of the ADAM administration tool set. In these exercises, you use Ldp to connect and bind to an ADAM instance, and then you use Ldp to manually add and then delete an application directory partition. (Remember, you can also create an application directory partition by using the ADAM setup wizard.)

Connecting and Binding to an ADAM Instance Using Ldp.exe

To begin this exercise, you connect and bind to your ADAM instance using Ldp.exe.

To connect and bind to an ADAM instance using Ldp.exe

  1. Click Start, point to All Programs, point to ADAM, and then click ADAM Tools Command Prompt.

  2. At the command prompt, type ldp, and then press ENTER.

  3. On the Connection menu, click Connect.

  4. In Server, type the host or DNS name of the computer running ADAM. When the ADAM instance is running locally, you can also type localhost.

  5. In Port, type the LDAP or SSL communication port number for the ADAM instance to which you want to connect, and then click OK.

    ADAM Ldp connect
  6. On the Connection menu, click Bind.

  7. Do one of the following:

    • To bind using the credentials you logged on with, click Bind as currently logged on user.

    • To bind using a domain user account, click Bind using credentials,type the user name, password, and domain name (or the computer name, if you are using a local workstation account) of the account that you are using, and then click OK, as in the following.

      ADAM Ldp bind
    • To bind using just a user name and password, click Simple bind, type the user name and password of the account that you are using, and then click OK.

    • To bind using an advanced method (NTLM, DPA, negotiate, or digest), click Advanced (method), click Advanced, in Method, select the desired method, set other options as needed, and then click OK twice.

  8. When you are finished specifying bind options, click OK.

Adding an Application Directory Partition

Now, you are ready to add an application directory partition.

To add an application directory partition using Ldp.exe

  1. On the Ldp Browse menu, click Add child.

  2. In Dn, type cn=test,o=testpartition,c=us as the distinguished name for the new application directory partition.

  3. Under Edit Entry, type the following, and then click Enter:

    • In Attribute, type ObjectClass.

    • In Values, type container.

  4. Under Edit Entry, type the following, and then click Enter:

    • In Attribute, type InstanceType.

    • In Values, type 5.

    The Add dialog box looks like the following:

    ADAM Ldp, adding application directory partition
  5. Click Run. After the new application directory partition is added, the following result appears in the details pane:

    ***Calling Add...
    ldap_add_s(ld, "cn=test,o=testpartition,c=us", [2] attrs)
    Added {cn=test,o=testpartition,c=us}.
    
  6. Click Close.

  7. To refresh Ldp and view your new directory partition, you must disconnect and then bind again to the ADAM instance. On the Connection menu, click Disconnect.

  8. Bind to your ADAM instance as you did previously. On the Connection menu, click Bind.

  9. To view the directory tree in Ldp, on the View menu, click Tree.

  10. To view all directory partitions on the ADAM instance, leave BaseDN blank, and then click OK. The Ldp window looks like the following:

    ADAM Ldp, viewing the tree
  11. To view your new directory partition and its default containers and objects, double-click CN=test,O=testpartition,C=US in the console tree. The Ldp window looks like the following:

    ADAM Ldp, viewing the new partition

Deleting an Application Directory Partition

In this exercise, you delete the application directory partition that you just created.

To delete an application directory partition using Ldp.exe

  1. In the Ldp console tree, double-click the configuration directory partition CN=Configuration,CN={GUID}, where GUID is the unique identifier that is assigned by ADAM.

  2. To view the cross-reference objects for the directory partitions on your ADAM instance, in the console tree, double-click the partitions container CN=Partitions. The Ldp window looks like the following:

    ADAM Ldp directory partition cross-references
  3. In the console tree, under the partitions container CN=Partitions, double-click the cross-reference object for which the value of nCName (as viewed in the details pane) is equal to CN=test,O=testpartition,C=US, as shown in the following:

    noteNote
    To clear the details pane in Ldp without disturbing your bind or connection, on the Connection menu, click New.

    ADAM Ldp, identify directory partition cross-ref
  4. To delete this cross-reference object (and, therefore, the associated directory partition), in the console tree, right-click the appropriate cross-reference object in the partitions container, click Delete, and then click OK.

    CautionCaution
    You cannot undo a partition deletion after you click OK.

    After you delete the cross-reference object, output similar to the following appears in the details pane:

    ldap_delete_s(ld, "CN=56c5aea2-5cb1-450a-96f0-5622cd949791,CN=Partitions,CN=Configuration,CN={90BF4692-0FF5-4410-8835-DCBBEE6E08B1}");
    Deleted "CN=56c5aea2-5cb1-450a-96f0-5622cd949791,CN=Partitions,CN=Configuration,CN={90BF4692-0FF5-4410-8835-DCBBEE6E08B1}"
    
noteNote
For more information about Ldp, see ADAM Help. To open ADAM Help, click Start, point to All Programs, point to ADAM, and then click ADAM Help.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft