Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How I do enumerate users of a group in a nested OU

Posted on 2010-09-16
2
Medium Priority
?
967 Views
Last Modified: 2012-06-21
Goal: Setup Mailbox Mgr (Exchange 2003) to manage size of mailboxes using custom search/ldap query for members of a group where the group is in a nested OU

Issue: My ldap query below only returns users if the group is in a NON-nested OU -

(objectCategory=user)(memberOf=CN=GROUP,OU=OU,DC=DOMAIN,DC=com)

How can i alter my ldap query so it will return members of a security group in a nested OU so i dont have to change my AD layout - Below is how I have the layout

domain
   OU
       OU
          Group
0
Comment
Question by:SHAX
2 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 1000 total points
ID: 33693223
The DN or your group should be something like  CN=group,OU=nestedOU1,OU=nestedOU2,DC=domain,DC=com.  I'll test later but it should pick it up
 
Thanks
Mike
0
 

Author Comment

by:SHAX
ID: 33700961
that worked - it appears the sub OU goes 1st and the parent OU is 2nd - you got me on the right track -

Thanks -
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question