Newbie Q Trying to connect to Exchange using Ldap 
Author Message
 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/



Tue, 24 Jun 2003 18:20:26 GMT  
 Newbie Q Trying to connect to Exchange using Ldap
0x80072030L LDAP_NO_SUCH_OBJECT ERROR_DS_NO_SUCH_OBJECT Object does not exist.

Win32 Error Codes for ADSI
http://msdn.microsoft.com/library/psdk/adsi/ds2_error_0x7t.htm

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> 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.deja.com/



Wed, 25 Jun 2003 06:34:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Newbie Q Trying to connect to Exchange using Ldap

2. Trying to query Exchange 5.5 LDAP provider using VBScript

3. Using VB to access Exchange Server via ADSI/LDAP

4. Using VB to access Exchange Server via ADSI/LDAP

5. Has anyone successfully connected to an LDAP directory using ADSI

6. Error connecting to AD using ADSI and LDAP on NT4

7. Error connecting to AD using ADSI and LDAP on NT4

8. Updating Exchange directory, using LDAP

9. Finding/Adding Exchange Aliases from ADSI/LDAP Using VBS

10. Newbie: Trying to connect parent and child table for data insertion

11. (newbie) trying to connect to db, run sp, analyze results

12. Trying to automate scans to a PDF using Exchange 3.0

 

 
Powered by phpBB® Forum Software