ASP and LDAP

J

Jayashree Iyer

Hi,
Im trying to run an LDAP script from an ASP page. I know very little
about LDAP, and just based on some sample code I found on the
internet, I got the following:


<%
Set Conn=CreateObject("ADODB.Connection")
Conn.Provider="ADSDSOObject"
Conn.Open("ADs Provider")
Set rs=Conn.Execute("ldifde -f UsersFile.ldf -p Subtree -r
\"(&(objectClass=user)(showinaddressbook=CN=Global Address
List,OU=Microsoft Exchange,OU=CMC,OU=D-corp,OU=Organizations,DC=d-corp,DC=corp))\"")
Do While Not rs.EOF
ReturnValue=rs.Fields(0)
Response.Write ReturnValue&"<BR>"
%>

Obviously, it does not work !! If someone can help me with what
direction I should be proceeding in to change the code so that it
works?
Is it because I havent specified the server name or something, or is
it because I cant execute an LDAP command like ldifde in such a
straightforward manner and I need to change that?
Any help would be appreciated.
Thanks
Jayashree
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top