Script(s)

technology as-is

February 28, 2008
by gchandra
0 comments

How to Query Active Directory using LDAP in SQL Server 2000 / 2005 ?

Step 1:- Add a linked server for the Active Directory exec sp_addlinkedserver ‘ADSI’, ‘Active Directory Services 2.5’, ‘ADsDSOObject’, ‘adsdatasource’ Step 2 :- Then follow the steps mentioned here for setting up permissions. Step 3 :- You can query the Active … Continue reading