Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 12th, 2009, 02:57 PM
Friend of Wrox
 
Join Date: Mar 2004
Location: Ottawa, , Canada.
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!
Reply With Quote
  #2 (permalink)  
Old April 15th, 2009, 01:43 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default

Most probably this is caused by the path..

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.