Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 July 26th, 2003, 12:28 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDO, LDAP error 80005000

I'm using ASP and CDO to lookup free busy time on an e2k server. The E2K is locally installed on the IIS server and I'm having no problems accessing resources like public folders, mailboxes, etc. When I check Free Busy you have to access the Active Directory with LDAP. The Domain Controller is on another server. I am getting error 80005000 whenever I query LDAP. The following code works perfectly on a server that is a DC, but my production server is not a DC. Here are two code snippets.

Code snippet #1:

With CreateObject("CDO.Addressee")
..EmailAddress = objUser.Mail

If .CheckName("LDAP://TheDC/DC=somewhere,DC=com") Then
  strFBStatus = .GetFreeBusy(Date1,DateAdd("d",1,Date1),30)

Else
  strFBStatus = "0"

End If

End With

I also have the same problem with ADSI, but have found a way around it by hardcoding a username and pwd to use for the lookup. Previous to this I was just doing a GetObject without the OpenDSObject and that worked without hardcoding the user and pwd.

I believe this is an IIS issue. I have Integrated Windows Authenticaion turned on in my website, but I think the server is not passing the credentials to the DC for some reason.

This code works -

Code snippet #2:

Set test = GetObject("LDAP:")
Set grp = test.OpenDSObject
("LDAP://TheDC/CN=Users,DC=somewhere,DC=com", "userx", "abc
123", ADS_SECURE_AUTHENTICATION)








Similar Threads
Thread Thread Starter Forum Replies Last Post
Error querying LDAP bala24 General .NET 0 March 7th, 2007 10:08 PM
CDO Email error Treefarn Classic ASP Professional 10 February 20th, 2007 02:39 PM
how to remove this CDO error p2pMember Classic ASP Professional 3 October 6th, 2005 04:00 AM





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