ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

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 July 2nd, 2009, 04:47 PM
lookout888 lookout888 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 2 lookout888 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 56 sec
Reputation Power: 0
Providing credentials for an ldap search

Greetings all,
I am having a little problem and the answer is probably plain as day. I have created a webpage to show free/busy info from my exchange server. The first asp page gets a list of all users and Distribution lists. The code works 100% when I have valid ad account credentials in the ""Anonymous".
What I need to do is have the credentials in the code and remove it from iis. I have tried many of different ways to do this with non of them working. Here is the code I have and I will go over what I have tried.
Code:
<HTML>
<Head>
<Title>Website</Title>
<script type="text/javascript" src="calendarDateInput.js">
</Script>
</Head>
<Body>
<%
LDAPdl = "SELECT cn FROM 'LDAP://ou=Distribution Lists,dc=domain,dc=com' WHERE objectClass='group' Order By cn"
LDAPuser = "SELECT cn FROM 'LDAP://ou=Employees,dc=domain,dc=com' WHERE objectClass='User'Order By cn"
Set Conn = CreateObject("ADODB.Connection")
Conn.Provider = "ADSDSOObject"
conn.Open "Active Directory Provider"

Set rs = Conn.Execute(LDAPuser)
rs.MoveFirst


I get
"Provider error '80040e37'
Table does not exist"
On Set rs = Conn.Execute(LDAPuser)
But again this code works fine when credentials are supplied with iis. So I figures it was access. So I have tried adding

Conn.Properties("User ID") = "username" (including domain\username and user.domain.com
Conn.properties("Password") = "Password"

I have also tried
conn.Open "Active Directory Provider", username,password

All still give me

Provider error '80040e37'

Table does not exist.

Any help would be grateful.

Thanks
Mike

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Providing cradentials for an ldap search


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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT