Searching with the DirectorySearcher

In this chapter, we introduce LDAP searches with the DirectorySearcher class. We start with an overview of searching in general and provide a tour through the properties and methods of DirectorySearcher and its supporting classes. After that, we start to dig into the mechanics of searching with an explanation of the search base, scope, and security contexts.

Next, we take a deep look at building LDAP query filters, as they are the mechanism by which we can restrict the results of our searches and find specific objects. They are essential to effective searching.

After that, we look at how to control the results returned from a search. We demonstrate the methods available for executing a search, and we show how to enumerate the results we receive.

We wrap up with a discussion on performing large searches using a technique called paging, and we talk about how to have the server sort our results.

Part I: Fundamentals

Introduction to LDAP and Active Directory

Introduction to .NET Directory Services Programming

Binding and CRUD Operations with DirectoryEntry

Searching with the DirectorySearcher

Advanced LDAP Searches

Reading and Writing LDAP Attributes

Active Directory and ADAM Schema

Security in Directory Services Programming

Introduction to the ActiveDirectory Namespace

Part II: Practical Applications

User Management

Group Management

Authentication

Part III: Appendixes

Appendix A. Three Approaches to COM Interop with ADSI

Appendix B. LDAP Tools for Programmers

Appendix C. Troubleshooting and Help

Index



The. NET Developer's Guide to Directory Services Programming
The .NET Developers Guide to Directory Services Programming
ISBN: 0321350170
EAN: 2147483647
Year: 2004
Pages: 165

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net