471,084 Members | 1,046 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

ldap error on Windows XP

I'm trying to access to a LDAP server by a
VB 6 application in order to get info about user.

The following code works fine running on
Windows 2000 professional but fails on
Windows XP.

Can anybody give me any information
about this kind of conflict ?

Thank you
I'm including in my VB project' references :

- Microsoft ActiveX Data Objects 2.5 Library (msado25.tlb)
- Active DS Type Library (activeds.tlb)
Dim con As ADODB.Connection
Dim ocommand As ADODB.Command

' Create ADO connection object for Active Directory
Set con = CreateObject("ADODB.Connection")
con.Provider = "ADsDSOObject"
con.Properties("ADSI Flag") = ADS_USE_SSL + ADS_SERVER_BIND
con.Open "Active Directory Provider"

' Create ADO command object for the connection.
Set ocommand = CreateObject("ADODB.Command")
ocommand.ActiveConnection = con
Set oRoot = GetObject("LDAP://nomeserverldap:portnumber/O=myorganization")
.......

At this point I get the error :

err.Number = -2147016646
err.Description = Automation Error

I also tried to execute

LDAP://nomeserverldap:portnumber/O=myorganization

straight from RUN menu and again, on Windows 2000 professional all works fine,
while on XP I get this error message

"The specified directory service could not be reached.
The service may be temporarily unavailable or the server name may be incorrect"
Jul 17 '05 #1
0 4039

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Durairaj Avasi | last post: by
7 posts views Thread by Amar | last post: by
1 post views Thread by Andrew | last post: by
5 posts views Thread by Bryan | last post: by
reply views Thread by Kenneth H. Young | last post: by
3 posts views Thread by RJN | last post: by
reply views Thread by Sells, Fred | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.