RE: Querying Active Directory
Found it! EXEC sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5', 'ADSDSOObject', 'AD Provider' grant select on corpsysad_allusers to public select * from corpsysad_allusers create view corpsysad_allusers as SELECT name FROM OPENQUERY( ADSI, ' SELECT name FROM ''LDAP://163.232.12.200/CN=Application Users,DC=ppl2kdv''') where ppl2kdv is the root node of my AD (others may include the complete .com.au or whatever, if […]
2003-06-10