Solved

ldap search security group membership

Posted on 2014-07-23
3
694 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now