Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 12th, 2009, 02:57 PM
Friend of Wrox
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP/LDAP - error '80004005'

Have this code, which works from within excel (change a few things due to environment), and I'm trying to make it work using ASP... but when it comes to executing, it fails giving me this:

Providererror '80004005'
Unspecified error /test/ldap2.asp, line 23

ADsPath = "ldap://[server]"
Set con = CreateObject("ADODB.Connection")
With con
.Provider = "ADSDSOObject"
.Properties("User ID") = "[username]"
.Properties("Password") = "[password]"
.Open "ADSI"
End With
Set com = CreateObject("ADODB.Command")
With com
.ActiveConnection = con
' ADsPath
.CommandText = "<" & ADsPath & ">;(cn=[name]);mail,cn;subtree"
End With
Set rs = com.Execute 'Line 23

Any help on this would be... fantastic!
Old April 15th, 2009, 01:43 PM
Friend of Wrox
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway

Most probably this is caused by the path..

ADsPath = "ldap://[server]"
.CommandText = "<" & ADsPath & ">;(cn=[name]);mail,cn;subtree"

Similar Threads
Thread Thread Starter Forum Replies Last Post
80004005 error rboukaka Access ASP 4 January 2nd, 2005 10:17 AM
Server.MapPath() error 'ASP 0173 : 80004005' nancy Classic ASP Databases 3 September 1st, 2004 03:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.