Talk About Network

Google





Software > ADSI General > retrieving Grou...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5279 of 5437
Post > Topic >>

retrieving Group/OU member****p for a user using ADSI/C++

by =?Utf-8?B?V2ViRHJpdmU=?= <WebDrive@[EMAIL PROTECTED] > May 22, 2008 at 06:29 AM

Hello,
 I'm trying to generate a list of groups/OU's to which a user belongs 
through ADSI and am having problems. My AD looks like

DC=FOO,DC=COM
---OU=OrgUnit1
-------CN=GlobalSecurityGroup1
------------------member=CN=User1,OU=OrgUnit1,DC=FOO,DC=COM
------------------member=CN=User2,OU=OrgUnit1,DC=FOO,DC=COM
------------------member=CN=User3,OU=OrgUnit1,DC=FOO,DC=COM
-------CN=User1
-------CN=User2
-------CN=User3
-------CN=BuiltIn
-------CN=Users

So I have a top level OU which contains 3 users, User1,User2 and User3.
The 
OU also contains GlobalSecurityGroup1 which has three members, User1,User2

and User3.

How can I use ADSI to generate a list of OUs/Groups to which User2
belongs? 
I'd like to get a result set of GlobalSecurityGroup1 and OrgUnit1?

I'm able to search DC=FOO,DC=COM and specify the following filter

member:1.2.840.113556.1.4.1941:=CN=User2,OU=OrgUnit1,DC=FOO,DC=COM

which will return the NT Security Group, but not OrgUnit1, do I need two 
different queries?


Thanks!
Michael
 




 3 Posts in Topic:
retrieving Group/OU membership for a user using ADSI/C++
=?Utf-8?B?V2ViRHJpdmU=?=   2008-05-22 06:29:01 
Re: retrieving Group/OU membership for a user using ADSI/C++
"Richard Mueller [MV  2008-05-22 09:40:20 
Re: retrieving Group/OU membership for a user using ADSI/C++
"Joe Kaplan" &l  2008-05-22 09:46:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 19:40:17 PST 2009.