Active directory: Get users associated with groups
From: Mark (dont_at_spam.me)
Date: 03/13/05
- Next message: ar: "Re: textbox names equal to variables"
- Previous message: PickwickBob: "Speech SERVER ERROR - 500"
- Next in thread: Jakob Christensen: "RE: Active directory: Get users associated with groups"
- Reply: Jakob Christensen: "RE: Active directory: Get users associated with groups"
- Reply: Marc Scheuner [MVP ADSI]: "Re: Active directory: Get users associated with groups"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Mar 2005 11:13:40 +1300
Hi, can anyone please tell me (Given a group name) how I can retrieve just
those users associated with that group using Active Directory using LDAP??
I am using the code below with not much luck
[code]
DirectoryEntry entry = new DirectoryEntry("LDAP://" +
Domain,"LoginUser","Password");
DirectorySearcher Dsearch = new DirectorySearcher(entry);
Dsearch.Filter = "objectCategory =All users"; // All users is a group in AD
[/code]
TIA
Mark
- Next message: ar: "Re: textbox names equal to variables"
- Previous message: PickwickBob: "Speech SERVER ERROR - 500"
- Next in thread: Jakob Christensen: "RE: Active directory: Get users associated with groups"
- Reply: Jakob Christensen: "RE: Active directory: Get users associated with groups"
- Reply: Marc Scheuner [MVP ADSI]: "Re: Active directory: Get users associated with groups"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|