dbTalk Databases Forums  

Query LDAP Groups

microsoft.public.sqlserver.mseq microsoft.public.sqlserver.mseq


Discuss Query LDAP Groups in the microsoft.public.sqlserver.mseq forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jesse
 
Posts: n/a

Default Query LDAP Groups - 04-18-2005 , 12:36 PM






I am wanting to create a sql query to get the Members of a Active Directory
group. I am using the below code:

SELECT * FROM OPENQUERY( ADSI,
'SELECT Name FROM ''LDAP://DC=DOMAIN,DC=com''
WHERE objectCategory = ''group'' and memberof = ''groupname''')

How ever this dose not work. What I need is basicly to search active
directory and get the logon name if the user is a member of a spacific domain
group.

Any help would be really great.

Thanks

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 - 2013, Jelsoft Enterprises Ltd.