Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Active Directory connection from SSIS

$
0
0

I'm trying to query against AD to grab some data.  I've done this setup and got it to work at my location but can't get it working at one of my customers.

Per information I've found  via this site I did the following:

Task: from SS2005, select data elements from Active Directory and populate in ODS (using an

            SS2005 Package in SSIS)

 

  1. I created a linked server on the MS2005
    1. EXEC sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5', 'ADSDSOObject', 'adsdatasource'
  2. I then created the following View (in the Master DB):

CREATE VIEW viewADContacts

AS

SELECT [NAME],MAIL

FROM OPENQUERY( ADSI,

   'SELECT NAME, MAIL

   FROM ''LDAP://#######/ DC=####,DC=###''

   ')

             The View created w/ no errors

  1. When I execute

                  select * from viewADContacts

            I get this error:

Cannot fetch a row from OLE DB provider "ADSDSOObject" for linked server "ADSI".

 

Any thoughts on this error?  Again, I did the exact same thing at my office (against my local AD) and it worked fine.

 

Thanks in advance

 

Tom


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>