Solved

ldap search security group membership

Posted on 2014-07-23
3
710 Views
Last Modified: 2014-08-15
Hi!

I'm trying to do an ldap search for all users who are part of an OU called IT and Members Of a Security Group called PEMUsers.

The users are located here: OU=IT,OU=Users,OU=Ewing,OU=CU,DC=cunj,DC=local

The Security Group called PEMUsers is located: CN=PEMUsers,OU=Groups,OU=Ewing,OU=CU,DC=cunj,DC=local

I'm having trouble writing the filter to narrow down based on people being in the Security Group called PEMUsers.

I can use the first query to list all the users of the OU called IT which works well, But when I applied the filter below I yield no results.

I've tried:

memberOf=CN=PEMUsers,OU=IT,OU=Users,OU=Ewing,OU=CU,DC=cunj,DC=local

and

memberOf=CN=PEMUsers,OU=Groups,OU=Ewing,OU=CU,DC=cunj,DC=local



Any ideas?
0
Comment
Question by:First Last
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 500 total points
ID: 40215580
You won't be able to do it using an LDAP query.  Would you be open to doing it via a script?

Thanks

Mike
0
 
LVL 1

Author Comment

by:First Last
ID: 40215597
Hi Mike -

Unfortunately, the software I'm using only allows me to run a command line for a search and a command line for a filter.

Is there any other way you can think of to find all members in a specific security group?  At this point I don't care what OU the user resides.

Thanks,

Mike!
0
 
LVL 1

Author Closing Comment

by:First Last
ID: 40263194
My software had a limitation. I couldn't apply a detailed script which would have otherwise worked.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. 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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

790 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