Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Error 3706 with "Active Directory Provider"

 
   Database Forums (Home) -> Visual Basic -> DAO RSS
Next:  SS05 : use local user account for services accoun..  
Author Message
wdhough

External


Since: Jan 19, 2009
Posts: 1



(Msg. 1) Posted: Mon Jan 19, 2009 2:31 am
Post subject: Error 3706 with "Active Directory Provider"
Archived from groups: microsoft>public>vb>database>dao (more info?)

Hi There I have the following piece of code

Dim conn As New ADODB.Connection
Dim command As New ADODB.command
Dim recordSet As ADODB.recordSet

'set the provider of the data store to Active Directory
conn.Provider = "ADsDSOObject"

'set up the connection string making sure to pass in the username and password
conn.Open "Active Directory Provider", AdminUserName, AdminPassword

On the last line, where I attempt to open the connection I get the following
error.
"Error 3706 Provider cannot be found. It may not be properly installed"

This code works fine on my development machine but not on the one of the
machines I am trying to test it on. I have looked around on the net and seen
a lot of stuff about re-installing MDAC. I have tried this and no change and
I have checked that the Data Objects Library 2.8 is on the troublesome
machine as well but still the same thing.

Anyone know what I am missing. Incidently I am using this to check a users
pwdlastset attribute in Active Directory so if there is a better way of doing
this i.e without ADODB then that may also be of help

Thanks in advance

Will

 >> Stay informed about: Error 3706 with ""Active Directory Provider"" 
Back to top
Login to vote
Ralph

External


Since: Jun 25, 2005
Posts: 348



(Msg. 2) Posted: Mon Jan 19, 2009 8:12 pm
Post subject: Re: Error 3706 with "Active Directory Provider" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"wdhough" wrote in message

> Hi There I have the following piece of code
>
> Dim conn As New ADODB.Connection
> Dim command As New ADODB.command
> Dim recordSet As ADODB.recordSet
>
> 'set the provider of the data store to Active Directory
> conn.Provider = "ADsDSOObject"
>
> 'set up the connection string making sure to pass in the username and
password
> conn.Open "Active Directory Provider", AdminUserName, AdminPassword
>
> On the last line, where I attempt to open the connection I get the
following
> error.
> "Error 3706 Provider cannot be found. It may not be properly installed"
>
> This code works fine on my development machine but not on the one of the
> machines I am trying to test it on. I have looked around on the net and
seen
> a lot of stuff about re-installing MDAC. I have tried this and no change
and
> I have checked that the Data Objects Library 2.8 is on the troublesome
> machine as well but still the same thing.
>
> Anyone know what I am missing. Incidently I am using this to check a users
> pwdlastset attribute in Active Directory so if there is a better way of
doing
> this i.e without ADODB then that may also be of help
>


ADSDSOObject provide is implemented by the "activeds.dll", the "Active
Directory Service Interface (ADSI) Core" component.
Check to see that the dll is present and is registered.

-ralph

 >> Stay informed about: Error 3706 with ""Active Directory Provider"" 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]