Accessing the Directory: CDO or ADSI?

The big question is how to access the directory provided by Exchange Server. Consider using CDO to access the Exchange Server directory when you are running earlier versions of Exchange Server such as Exchange Server 4.0, because Exchange Server 4.0 does not support LDAP, which is required to support the ADSI object library. Although CDO offers you a limited subset of features because it can access only the properties that have corresponding MAPI unique IDs, if CDO provides access to the directory properties that you need in your application, use it for directory access. Using CDO has the benefit of allowing you to write your application using a familiar object library, and you do not have to write to a second object library, which can save debugging time.

The other way to access the Exchange Server directory is by using the ADSI object library, which gives you more flexibility. Using ADSI, you not only can access the properties used by CDO but also other properties stored in the Exchange Server directory—for example, configuration information, such as which connectors are installed on the Exchange Server, and whether the Exchange Server is anonymously publishing its directory entries to HTTP clients.

To use ADSI, you have to run a version of Exchange Server that supports LDAP. Exchange Server 5.0 supports LDAP read-only access, and Exchange Server 5.5 supports LDAP read/write access. I recommend that if you want to use ADSI with your Exchange Servers, you should install or upgrade to Exchange Server 5.5. With CDO, you can use any version of Exchange Server, from version 4.0 through version 5.5.



Programming Microsoft Outlook and Microsoft Exchange
Programming Microsoft Outlook and Microsoft Exchange, Second Edition (DV-MPS Programming)
ISBN: 0735610193
EAN: 2147483647
Year: 1999
Pages: 101

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