Appendix A. Three Approaches to COM Interop with ADSI

Throughout the book, we have mentioned that it is useful and occasionally even necessary to do some kind of COM interop with ADSI when using System.DirectoryServices (SDS). For example, it is useful for harnessing the IADsNameTranslate interface and it is necessary for setting attributes with the LargeInteger syntax (2.5.5.16, see Chapter 6).

There are actually three different approaches we can use for COM interop:

  • The "standard" method, where an interop assembly is generated with tlbimp.exe or by setting a COM reference to activeds.tlb in Visual Studio .NET
  • The reflection method, where we use types in the System.Reflection namespace to discover and invoke ADSI COM interface methods dynamically at runtime
  • The "roll your own" approach of writing our own .NET declaration for a COM type by hand

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

Similar book on Amazon

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