Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 3rd, 2006, 12:58 PM
swimmerone swimmerone is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Location: New Hampster
Posts: 1 swimmerone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 47 sec
Reputation Power: 0
LDAP Script works in Vbscript, not in IIS Web Page

I am trying to connect via LDAP to AD. I’m using Getobject("LDAP://RootDSE") from an ASP page on the IIS Dev box. The error I keep getting is 8007054b, which translates into "The specified domain either does not exist or could not be contacted."
I can run the same code in a vbs script and have no errors and return the data I want. I can run that script locally, server side or even from inetwww on the dev box. As soon as the code is ensconced in a web page, it fails.

I found a post on ASP Free with the same problem, entitled “8007054b error accessing RootDSE from asp” where members SerialHobbyinst and Doug G, et al, discuss the problem and provide a solution involving going “into active directory users and computers and mark the server that is serving those pages as "Trust this computer for delegation" on the general tab
then on the IIS website you go into properties and edit directory security so that no anonymous access is granted and select windows authentication and then it will be the user logged on to the computer that gets authenticated to AD when querying LDAP”,

I can’t make the change suggested in my environment.

However, myobj = GetObject(“LDAP:”) is successful.

Can someone help with this? Here is what I'm thinking:

1. After myobj = GetObject(“LDAP:”) is successful, and I query ‘LDAP://dc=DCone,Dc=DCtwo’, the new error message says, "Table not found". I assume it’s because I having provided the full path – but is there another reason?
2. Of course, strMyDNS=Get.myobj(“DefaultNamingContext”) fails. Is there an alternative property?
3. How do I obtain the full path since I do not have the RootDSE object? I’ve tried ‘LDAP://CN=Schema,CN=Configuration, DC=DCone, DC=DCtwo’ and ‘LDAP://CN=CN=Aggregate, CN=Schema,CN=Configuration, DC=DCone, DC=DCtwo’
4. Is there another way you might suggest to get the queries to work?

Thanks for your help.

Reply With Quote
  #2  
Old August 3rd, 2006, 01:40 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,776 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 27 m 42 sec
Reputation Power: 470
Quote:
Originally Posted by swimmerone
I can’t make the change suggested in my environment.

Why not?

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > LDAP Script works in Vbscript, not in IIS Web Page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT