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
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