|
 |
asp_ado_rds thread: ado adsi ?
Message #1 by "DEBDAS SINHA" <debdas@t...> on Wed, 08 Aug 2001 11:07:18 +0530
|
|
how to connect to an LDAP server from asp code
i tried the follwing :
but finding errors : table does not exist, one or more errors occurred
while processing..
etc.
Dim conn
set conn=server.CreateObject("ADODB.Connection")
Dim rs
set rs=server.CreateObject("ADODB.Recordset")
conn.Provider = "ADSDSOObject"
conn.Open "ADs Provider"
Set rs
conn.Execute("<LDAP://x.x.x.x:389/o=organisation/ou=eastunit/cn=debdas>;(objectClass=*);ADsPath,objectClass,cn;subtree")
*error is in the above line
values of "o" , "ou" ,"cn" are correct
what is objectClass ?
ADsPath ?
thanks in adv. for any help
Message #2 by "Damian Lefebvre" <d.lefebvre@s...> on Mon, 13 Aug 2001 10:25:59
|
|
> how to connect to an LDAP server from asp code
> i tried the follwing :
> but finding errors : table does not exist, one or more errors occurred
> while processing..
> etc.
>
> Dim conn
> set conn=server.CreateObject("ADODB.Connection")
> Dim rs
> set rs=server.CreateObject("ADODB.Recordset")
> conn.Provider = "ADSDSOObject"
> conn.Open "ADs Provider"
>
> Set rs
>
> conn.Execute("<LDAP://x.x.x.x:389/o=organisation/ou=eastunit/cn=debdas>;
(objectClass=*);ADsPath,objectClass,cn;subtree")
>
> *error is in the above line
> values of "o" , "ou" ,"cn" are correct
>
> what is objectClass ?
> ADsPath ?
>
>
> thanks in adv. for any help
>
>
I am having the same problem. Can you let me know if you get any where.
Cheers
Damian
Message #3 by "Mohammed Abdul Azeem" <abdulazeem_it@h...> on Tue, 14 Aug 2001 05:33:32 +0000
|
|
Hi
first u get connected in this way
dim con,cmd,sqlIns
set con=Server.CreateObject("ADODB.Connection")
con.Open "Provider=MSDAORA.1;Password=tiger;User ID=scott"
(if u r using remote data base then use below string and comment above one:
' con.Open "Provider=MSDAORA.1;Password=tiger;User ID=scott;data
source=blackbox")
set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "select * from emp",con
then u can do any thing
azeem
>From: "Damian Lefebvre" <d.lefebvre@s...>
>Reply-To: "ASP_ADO_RDS" <asp_ado_rds@p...>
>To: "ASP_ADO_RDS" <asp_ado_rds@p...>
>Subject: [asp_ado_rds] Re: ado adsi ?
>Date: Mon, 13 Aug 2001 10:25:59
>
> > how to connect to an LDAP server from asp code
> > i tried the follwing :
> > but finding errors : table does not exist, one or more errors occurred
> > while processing..
> > etc.
> >
> > Dim conn
> > set conn=server.CreateObject("ADODB.Connection")
> > Dim rs
> > set rs=server.CreateObject("ADODB.Recordset")
> > conn.Provider = "ADSDSOObject"
> > conn.Open "ADs Provider"
> >
> > Set rs
> >
> > conn.Execute("<LDAP://x.x.x.x:389/o=organisation/ou=eastunit/cn=debdas>;
>(objectClass=*);ADsPath,objectClass,cn;subtree")
> >
> > *error is in the above line
> > values of "o" , "ou" ,"cn" are correct
> >
> > what is objectClass ?
> > ADsPath ?
> >
> >
> > thanks in adv. for any help
> >
> >
>
>I am having the same problem. Can you let me know if you get any where.
>
>
>Cheers
>
>Damian
>
|
|
 |