473,513 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error 80005000 when querying LDAP

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.

Code snippet #1 (error occurs on If .Checkname(LDAP...):

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 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)
This code doesn't work:
code snippet #3

Set grp = GetObject
("LDAP://TheDC,CN=Users,DC=somewhere,DC=com")
Jul 19 '05 #1
0 6167

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
662
by: David Moore | last post by:
Hello I am using the System.DirectoryServices namespace classes to access Active Directory. We connect using the LDAP://DOMAIN method. The code works on local dev boxes, and in staging, but...
0
9000
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of...
3
5247
by: Frank Drebin | last post by:
I have a need to allow other LDAP-compliant customers that want to integrate thier own single-signon to be able to map to accounts in my SQL2K database. Since they are using LDAP - I'm assuming I'd...
3
16424
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
0
1266
by: Marty Underwood | last post by:
Don't know if anyone will be able to answer this but I have to use a non ..net com object at work to query AD. However, the problem we are experiencing is if the user is only in 2 groups, for...
2
3393
by: Jay | last post by:
Hi, This is Jay Mehta. I have this problem when using LDAP. I extract names and EmailId's of all those present from LDAP and populate in a datagrid. Now when run locally, it is running...
3
4020
by: RJN | last post by:
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new...
0
2021
by: choukse | last post by:
Hi All, I am trying to bind to ADAM instance with a windows user through JNDI and it keeps failing. My ADAM and AD is running on same Windows 2k3 server. But, through LDP I am able to bind with...
0
3201
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.