Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: ASP and LDAP


Message #1 by "Rajesh Kumar" <rkumar@v...> on Wed, 18 Jul 2001 12:37:38 +0100
Hi all,



Has anyone tried to develop any component / program to read ldap database

using ASP / Visual Basic?



regards

Rajesh



Message #2 by "Carvalho, Marcelo (M.A.)" <mcarval2@f...> on Wed, 18 Jul 2001 07:54:30 -0400
Hello Rajesh,

    as follow the part of code that use the LDAP in ASP:



<%

user_id=3Drequest.servervariables("remote_user")

strSearchType =3D "i"

strFilters    =3D "uid=3D" & user_id

strAttributes =3D "cn,description,telephoneNumber,l,title," & _

   "forddeptcode,employeeType,fordGID," & _

   "fordmanagercdsid,mobile,c,forddeptname," & _

   "fordSection,manager,jpegPhoto"



set objLdap =3D server.CreateObject("com.ford.enterprise.ldap.2")



set rstLdapResults 

=3DobjLdap.basicSearch(strSearchType,strFilters,strAttributes,"")



if (err.number <> 0) then

    Response.Write("<font color=3D#000066 face=3Dverdana,arial 

size=3D2>Failure #" & intErrorNum & "<BR>Description: " & strErrorDesc 

& "</font>")

 Response.End

end if

%>

<HTML>

<HEAD>

<META NAME=3D"GENERATOR" Content=3D"Microsoft Visual Studio 6.0">

</HEAD>

<BODY bgColor=3D#99ccff background=3D../../graphics/fundosps.gif>

<DIV STYLE=3D"HEIGHT: 43px; LEFT: 134px; POSITION: absolute; TOP: 8px; 

WIDTH: 438px">

 <P align=3Dcenter><FONT color=3Dmediumblue size=3D4><STRONG><U>SIV - 

Sistema Integrado   de Vendas </U></STRONG></FONT>

 </P>

</DIV>

<DIV style=3D"HEIGHT: 57px; LEFT: 67px; POSITION: absolute; TOP: 2px; 

WIDTH: 121px"> <FONT color=3Dmediumblue size=3D4><STRONG><U><IMG 

height=3D45 id    =3DIMG1 src       =3D"../../graphics/logoford.gif" 

style=3D"HEIGHT: 39px; WIDTH: 109px" width=3D96   ></U> </STRONG>

 </FONT>

</DIV>



<DIV style=3D"HEIGHT: 48px; LEFT: 553px; POSITION: absolute; TOP: 4px; 

WIDTH: 351px">

 <FONT color=3Ddarkblue size=3D1> 

Usu=E1rio..: <%=3DrstLdapResults(0)%>

 <br> Depto....: <%=3DrstLdapResults(5) +" - "+   

rstLdapResults(11)%>

 <br> Ger=EAncia.: <%=3DrstLdapResults(8)%>

</DIV>

</BODY>

</HTML>







-----Original Message-----

From: Rajesh Kumar [mailto:rkumar@v...]

Sent: quarta-feira, 18 de julho de 2001 08:38

To: ASP components

Subject: [asp_components] ASP and LDAP





Hi all,



Has anyone tried to develop any component / program to read ldap 

database

using ASP / Visual Basic?



regards

Rajesh





Message #3 by "Rajesh Kumar" <rkumar@v...> on Wed, 18 Jul 2001 16:06:38 +0100
Hi Carvalho,



Thanks for the code.



But I don't have the COM component "com.ford.enterprise.ldap.2") so I don;t

think I will be able to use this anyway.



Is it possible to get the COM objects!!!?



regards

Rajesh





Message #4 by "D a v i d" <registerukh@h...> on Wed, 18 Jul 2001 10:35:05 -0500
Rajesh,



Try this LDAPClient component. http://www.polonia-online.com/ldap/



Good Luck.







>From: "Rajesh Kumar" <rkumar@v...>

>Reply-To: "ASP components" <asp_components@p...>

>To: "ASP components" <asp_components@p...>

>Subject: [asp_components] RE: ASP and LDAP

>Date: Wed, 18 Jul 2001 16:06:38 +0100

>

>Hi Carvalho,

>

>Thanks for the code.

>

>But I don't have the COM component "com.ford.enterprise.ldap.2") so I don;t

>think I will be able to use this anyway.

>

>Is it possible to get the COM objects!!!?

>

>regards

>Rajesh

Message #5 by "Carvalho, Marcelo (M.A.)" <mcarval2@f...> on Wed, 18 Jul 2001 12:53:01 -0400
Rajesh, You can download this object in Microsoft Site and then change 

the instance for the correct name !



-----Original Message-----

From: Rajesh Kumar [mailto:rkumar@v...]

Sent: quarta-feira, 18 de julho de 2001 12:07

To: ASP components

Subject: [asp_components] RE: ASP and LDAP





Hi Carvalho,



Thanks for the code.



But I don't have the COM component "com.ford.enterprise.ldap.2") so I 

don;t

think I will be able to use this anyway.



Is it possible to get the COM objects!!!?



regards

Rajesh



Message #6 by "Rajesh Kumar" <rkumar@v...> on Thu, 19 Jul 2001 09:47:31 +0100
Hi Carvalho,



Could it be possible for you to send in the link where to find ldap

Component from the microsoft site.



thanks in advance.



regards

Rajesh





----- Original Message -----

From: "Carvalho, Marcelo (M.A.)" <mcarval2@f...>

To: "ASP components" <asp_components@p...>

Sent: Wednesday, July 18, 2001 5:53 PM

Subject: [asp_components] RE: ASP and LDAP





Rajesh, You can download this object in Microsoft Site and then change the

instance for the correct name !



-----Original Message-----

From: Rajesh Kumar [mailto:rkumar@v...]

Sent: quarta-feira, 18 de julho de 2001 12:07

To: ASP components

Subject: [asp_components] RE: ASP and LDAP





Hi Carvalho,



Thanks for the code.



But I don't have the COM component "com.ford.enterprise.ldap.2") so I don;t

think I will be able to use this anyway.



Is it possible to get the COM objects!!!?



regards

Rajesh


  Return to Index