Solved

ldap search security group membership

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
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 tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

770 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