Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


ADODB.Connection.Provider question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1866
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> ADODB.Connection.Provider question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 ADODB.Connection.Provider question - 1/19/2005 8:01:44 AM   
  branders

 

Posts: 1
Score: 0
Joined: 1/19/2005
From:
Status: offline
I have a couple of questions on using adodb to search a Netscape Directory Server (LDAP).
What would you use for the provider property?
I am currently using:
Set LDAPtest = GetObject("LDAP:")
Set LDAPobject = LDAPtest.OpenDSObject("LDAP://ldap.lsil.com/ou=Contractor,ou=lsil.com," _
"o=LSI Logic",uLDAP,pLDAP,516) '(server bind and read-only)
For Each objItem in LDAPobject
...

I would like to implement the LDAP search feature available in
set objConn = CreateObject("ADODB.Connection")
objConn.Provider = "ADsDSOObject"
objConn.Open "Active Directory Provider"
set objRS = objConn.Execute(strBase & strFilter & strAttrs _
& strScope)

Any help is greatly apreciated.
Thanks,
Brian
 
 
Post #: 1
 
 Re: ADODB.Connection.Provider question - 1/19/2005 12:41:43 PM   
  tnoonan

 

Posts: 364
Score: 0
Joined: 12/14/2004
From:
Status: offline
you still need to connect to your obconn.Provider whether it be Provider fileDNS, DNS or any of many options ex. below you put.

objConn.Open "Active Directory Provider"

which will not work.

Set adConn = CreateObject("ADODB.Connection")
Set adRS = CreateObject("ADODB.RecordSet")
adPath = "z:\Archive\tell.mdb"
adConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & adPath & ";"

(in reply to branders)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> ADODB.Connection.Provider question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts