I´m getting this error:
Provider error '80040e37'
Table does not exist.
/xxx/xxx/test2.asp, line 25
This is my code
Do anyone know what I am doing wrong
Provider error '80040e37'
Table does not exist.
/xxx/xxx/test2.asp, line 25
This is my code
Code:
<%@ Language=VBScript%>
<%
Option Explicit
Dim con,rs,Com
%>
<html>
<head>
<title>LDAP test</title>
</head>
<body>
debug
<%
Set con = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
con.provider ="ADsDSOObject"
con.open "Active Directory Provider"
Set Com = CreateObject("ADODB.Command")
Set Com.ActiveConnection = con
Com.CommandText ="SELECT name " &_
" FROM 'LDAP://ldap.ronneby.adm/ou=Rbyhus,o=Adm' " &_
" WHERE objectClass='user'"
Set rs = Com.Execute <-- Line 25 ---
%>
<table border="0" cellpadding="0" bgcolor="#CCCCCC">
<%
if NOT rs.EOF then
Do While Not rs.EOF
%>
<tr>
<td><% response.write rs("name")%></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
else
response.write "sorry, try again"
End If
%>
</table>
dubug
</body>
</html>
Do anyone know what I am doing wrong