This section contains samples that access and manage the Active Directory, showing how to do several typical directory operations.
Demonstrates how to connect to the currently logged-in domain.
Locates domain controllers and global catalogs.
Lists information about the current forest, the current domain, child domains, and the domain controller.
Demonstrates how to retrieve the current replication state information.
Demonstrates how to manage Active Directory replication
Demonstrates how to retrieve and extend Active Directory schema.
Demonstrates how to retrieve topological information in the Active Directory.
Demonstrates how to manage the Active Directory topology by creating a new site and adding subnets.
Demonstrates how to manage the Active Directory trust.
Demonstrates how to retrieve the Active Directory trust information.
Demonstrates how to do a basic search in Active Directory.
Demonstrates basic encoding rules (BER) encoding and decoding.
Demonstrates how to create a local group, add a user to a local group, and delete a local group.
Demonstrates how to get and set directory configuration settings.
Demonstrates how to perform an Active Directory directory synchronization search.
Demonstrates how to display the security descriptor object for a directory entry in Active Directory.
Demonstrates batch operations using DSML.
Demonstrates handling exceptions using DSML.
Demonstrates performing a paged search using DSML.
Demonstrates reading the RootDSE object and printing its attributes using DSML.
Sends requests to the server to perform directory operations using DSML.
Demonstrates asynchronous operations using LDAP.
Demonstrates LDAP exception handling.
Demonstrates performing a paged search of the Active Directory using LDAP.
Demonstrates reading the RootDSE object and printing its attributes using LDAP.
Demonstrates sending a request that will generate a referral using LDAP.
Demonstrates various directory operations using LDAP.