dbTalk Databases Forums  

DTS & ldap/active directory

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS & ldap/active directory in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
evanda@gmail.com
 
Posts: n/a

Default DTS & ldap/active directory - 08-17-2006 , 01:06 PM






Is there a way for DTS to use a directory server as a data source? The
only use i've seen for the directory services OLEDB provider,
ADsDSOObject, is in the typical workaround suggestion using a
query/view thusly:

EXEC sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces',
'ADsDSOObject', 'adsdatasource'
EXEC sp_addlinkedsrvlogin 'ADSI', 'false', NULL, NULL, NULL
CREATE VIEW OpenldapOrgView AS SELECT displayName as [Name]
FROM openquery(ADSI,
'<LDAP://ldap.openldap.org/OU=people,DC=openldap,DC=org>;(objectClass=person) ;displayName;subtree')

This is well and good so long as you don't need any multi-valued
attributes, and so long as you don't need a lot of records (e.g. more
than the 1000 active directory allows per request). (see the
'Limitations' section in
http://support.microsoft.com/default...b;en-us;299410 )

However, I am dealing with a lot of records, and more importantly, i
need to somehow get the multivalued attributes. I don't mind
transforming the data once fetched from a directory server so that it
is meaningful to a relational db, but i need to get at that data, so i
ask again:

is there any way for DTS to get data from a directory server?


Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: DTS & ldap/active directory - 08-20-2006 , 07:36 AM






How about using ActiveX script job, then writing an ADO script directly using
ADSI? You would then have to manage the table inserts yourself within your
script and not use the data pump. It looks like you have the skill set
required to do this. Just do it inside of an ActiveX script.

Charles Kangai, MCT, MCDBA



"evanda (AT) gmail (DOT) com" wrote:

Quote:
Is there a way for DTS to use a directory server as a data source? The
only use i've seen for the directory services OLEDB provider,
ADsDSOObject, is in the typical workaround suggestion using a
query/view thusly:

EXEC sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces',
'ADsDSOObject', 'adsdatasource'
EXEC sp_addlinkedsrvlogin 'ADSI', 'false', NULL, NULL, NULL
CREATE VIEW OpenldapOrgView AS SELECT displayName as [Name]
FROM openquery(ADSI,
'<LDAP://ldap.openldap.org/OU=people,DC=openldap,DC=org>;(objectClass=person) ;displayName;subtree')

This is well and good so long as you don't need any multi-valued
attributes, and so long as you don't need a lot of records (e.g. more
than the 1000 active directory allows per request). (see the
'Limitations' section in
http://support.microsoft.com/default...b;en-us;299410 )

However, I am dealing with a lot of records, and more importantly, i
need to somehow get the multivalued attributes. I don't mind
transforming the data once fetched from a directory server so that it
is meaningful to a relational db, but i need to get at that data, so i
ask again:

is there any way for DTS to get data from a directory server?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.