
Using VB to access Exchange Server via ADSI/LDAP
Does anybody have any experience accessing an Exchange server from VB using
ADSI/LDAP? (specifically the Global Address List, but anything would help)
I have been trying to wade through the documentation I can find on
Microsoft's web site without much luck. The examples say, for instance,
that all you need to do is open the path to the server with something like
"LDAP://SPARKER1/cn=SParker,cn=Recipients,ou=3081,o=16" and use your
username like "dc=redmond, cn=v-sparke". Nowhere do they explain where
those parameters came from or what the various cn=, ou=, dc= pieces mean.
Some of it makes sense when comparing against the info shown in the Exchange
admin tool, but without being able to compare their code against the same
structure it runs against some of it is totally obscure. Everything I try
reports an error of one sort or another. Nothing so far has let me access
anything on the server at all.
Any pointers to details on the LDAP protocol, it's implementation in
Exchange, or an easier way to update a mailing list in the global address
list would be greatly appreciated. CDO easily handles the personal address
book and will read the global but does not allow updates to it.