I'm not sure why but the following script only returns records where the description field in Active Directory is blank.
<%
On Error Resume Next
Dim oconn
Dim rs
Dim sqltext
dim c
Set oconn=CreateObject("ADODB.Connection")
oconn.Provider="ADsDSOOBJECT"
oconn.open
sqltext="Select ADsPath, cn, Description FROM 'LDAP://DC=FISD,DC=org'"
Set rs=oconn.Execute(sqltext)
c=1
Do While Not rs.eof
response.write c & " Container name: " & rs("cn") & " Path:" & rs("ADsPath") & " description:" & rs("description") &"<br>"
rs.movenext
c=c+1
Loop
%>
I want it to return all records and list what the description field value is, because my next step in this project is to search for specific values.
I'd appreciate any help I can get.
<%
On Error Resume Next
Dim oconn
Dim rs
Dim sqltext
dim c
Set oconn=CreateObject("ADODB.Connection")
oconn.Provider="ADsDSOOBJECT"
oconn.open
sqltext="Select ADsPath, cn, Description FROM 'LDAP://DC=FISD,DC=org'"
Set rs=oconn.Execute(sqltext)
c=1
Do While Not rs.eof
response.write c & " Container name: " & rs("cn") & " Path:" & rs("ADsPath") & " description:" & rs("description") &"<br>"
rs.movenext
c=c+1
Loop
%>
I want it to return all records and list what the description field value is, because my next step in this project is to search for specific values.
I'd appreciate any help I can get.