DSML Paged Search Technology Sample
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This sample demonstrates performing a paged search of the Active Directory using Directory Services Markup Language (DSML) Services. A paged search enables results to be received in pages. This sample is available only in Visual C#.
For information about using the samples, see the following topics:
To build the sample
Open a Command Prompt window and navigate to the PagedSearch\CS directory.
Type msbuild pagedsearch.sln at the command line.
To run the sample
Navigate to the directory that contains the built executable file, using the command prompt.
Type pagesearched followed by its arguments and press Enter.
This sample has the following syntax:
pagedsearch <dsmlServer> <user> <pwd> <domain> <targetOU>
dsmlServer
The server.user
Your user name.pwd
Your password.domain
The Active Directory domain.targetOU
The target organizational unit (OU).
Here is an example:
pagedsearch https://myDC1.testDom.fabrikam.com/dsml/adssoap.dsmlx user1 secret@~1 testDom OU=samples,DC=testDom,DC=fabrikam,DC=com
Note
This sample is a console application. You must start and run it in a Command Prompt window to view its output.
Remarks
This sample defines the following methods.
Method |
Description |
---|---|
CreateConnection |
Connects to the server using a DsmlSoapHttpConnection. |
CreateObjectsToSearch |
Adds a number of objects to the directory to be used in searching. |
DoPagedSearch |
Performs a paged search with a specified scope and attributes to return. |
DeleteObjectsToSearch |
Deletes the objects created for searching. |