Directory Services Samples
This section contains samples that access and manage the Active Directory, showing how to do several typical directory operations.
In This Section
- Active Directory Current Domain Technology Sample
Demonstrates how to connect to the currently logged-in domain.
- Active Directory Domain Controller Technology Sample
Locates domain controllers and global catalogs.
- Active Directory Domain Operation Technology Sample
Lists information about the current forest, the current domain, child domains, and the domain controller.
- Active Directory Replication State Information Technology Sample
Demonstrates how to retrieve the current replication state information.
- Active Directory Replication State Management Technology Sample
Demonstrates how to manage Active Directory replication
- Active Directory Schema Technology Sample
Demonstrates how to retrieve and extend Active Directory schema.
- Active Directory Topology Information Technology Sample
Demonstrates how to retrieve topological information in the Active Directory.
- Active Directory Topology Management Technology Sample
Demonstrates how to manage the Active Directory topology by creating a new site and adding subnets.
- Active Directory Trust Management Technology Sample
Demonstrates how to manage the Active Directory trust.
- Active Directory Trust Reporting Technology Sample
Demonstrates how to retrieve the Active Directory trust information.
- Basic Directory Search Technology Sample
Demonstrates how to do a basic search in Active Directory.
- BER Encoding Technology Sample
Demonstrates basic encoding rules (BER) encoding and decoding.
- Create and Delete Local Group Technology Sample
Demonstrates how to create a local group, add a user to a local group, and delete a local group.
- Directory Entry Configuration Settings Technology Sample
Demonstrates how to get and set directory configuration settings.
- Directory Synchronization Search Technology Sample
Demonstrates how to perform an Active Directory directory synchronization search.
- Display Security Descriptor Object Technology Sample
Demonstrates how to display the security descriptor object for a directory entry in Active Directory.
- DSML Batch Request Technology Sample
Demonstrates batch operations using DSML.
- DSML Exception Handling Technology Sample
Demonstrates handling exceptions using DSML.
- DSML Paged Search Technology Sample
Demonstrates performing a paged search using DSML.
- DSML ReadRootDSE Technology Sample
Demonstrates reading the RootDSE object and printing its attributes using DSML.
- DSML Send Request Technology Sample
Sends requests to the server to perform directory operations using DSML.
- LDAP Asynchronous Operations Technology Sample
Demonstrates asynchronous operations using LDAP.
- LDAP Exceptions Technology Sample
Demonstrates LDAP exception handling.
- LDAP Paged Search Technology Sample
Demonstrates performing a paged search of the Active Directory using LDAP.
- LDAP ReadRootDSE Technology Sample
Demonstrates reading the RootDSE object and printing its attributes using LDAP.
- LDAP Referral Technology Sample
Demonstrates sending a request that will generate a referral using LDAP.
- LDAP Send Request Technology Sample
Demonstrates various directory operations using LDAP.