
Newbie Q Trying to connect to Exchange using Ldap
Hi all,
I have the following question. I'm a system engineer and not a
developer so forgive me if i state the obvious.
I want to know the number of items that are in the GAL of an Exchange
site. I want to do this using VBScript.
Here is a a piece of script that i used to check if i could make a ldap
connection to an exchange server.
---------------------------------------------------------------------
Dim objMailbox
DIM s
S
= "LDAP://BZHS11.hag.minbuza.nl/cn=exchange.welkom,cn=Recipients,o=BZHUB
,o=BUZA"
Wscript.echo S
objMailbox = GetObject(S)
Wscript.echo S
' Retrieve and print the smtp addressDebug.Print objMailbox.Get("mail")
wscript.echo objMailbox.Get("rfc822Mailbox")
-----------------------------------------------------------------------
But this doens't work. I get the following errors.
The script itself gives a WIN32 Error 0x80072030, and in the eventlog
of the exchange server appears a warning 1354 from the MSExchangeDS
with the message LDAP search request failed with error: 32.
I drew a blank on technet with both errors.
I hope someone can help, state an example or something because I'm
really stuck.
Thx
Geurt Diepeveen
MCSE MCP
Sent via Deja.com
http://www.*-*-*.com/