|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Providing cradentials for an ldap search |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|