# ldapsearch groups

**URL:** <https://forums.suse.com/t/ldapsearch-groups/30158>\
**Category:** Chatting over the Back Fence\
**Created:** [August 10, 2017, 11:18pm UTC](https://forums.suse.com/t/ldapsearch-groups/30158 "2017-08-10T23:18:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [August 10, 2017, 11:18pm UTC](https://forums.suse.com/t/ldapsearch-groups/30158/1 "2017-08-10T23:18:20Z")

</div>

Is it possible with an ldapsearch filter to list the members of one  
group that do not appear as members of two other groups?

## –

tBM 🙂

---

<div class="post-metadata">

**Author:** ![kgroneman](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@kgroneman](https://forums.suse.com/u/kgroneman)\
**Post date:** [August 10, 2017, 11:45pm UTC](https://forums.suse.com/t/ldapsearch-groups/30158/2 "2017-08-10T23:45:22Z")

</div>

Which Micro Focus product are you talking about. If I know that, I can move  
your question into the appropriate product discussion forum. This is just a  
general chat area. Product experts don’t give support here.

–  
Kim - 8/10/2017 2:44:25 PM

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [August 10, 2017, 11:54pm UTC](https://forums.suse.com/t/ldapsearch-groups/30158/3 "2017-08-10T23:54:21Z")

</div>

I am not asking a product specific question. I am asking an ldap  
protocol specific question.

Thanks,

On 08/10/2017 04:45 PM, kgroneman wrote:[color=blue]

> Which Micro Focus product are you talking about. If I know that, I can move  
> your question into the appropriate product discussion forum. This is just a  
> general chat area. Product experts don’t give support here.  
> [/color]

## –

tBM 🙂

---

<div class="post-metadata">

**Author:** ![Jim1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jim1/32/9120_2.png) [@Jim1](https://forums.suse.com/u/Jim1)\
**Post date:** [August 11, 2017, 3:45am UTC](https://forums.suse.com/t/ldapsearch-groups/30158/4 "2017-08-11T03:45:59Z")

</div>

On Thu, 10 Aug 2017 20:18:20 +0000, tBM wrote:  
[color=blue]

> Is it possible with an ldapsearch filter to list the members of one  
> group that do not appear as members of two other groups?[/color]

Offhand, I can’t think of a way to do this, because LDAP’s search filter  
mechanism doesn’t support intersection-style operators.

I’d be most inclined to extract the data from the three groups in  
question and then process that data to make a determination - I’d  
probably write a script to parse the LDIF output into a CSV for each and  
then pull it into a spreadsheet to do the analysis.

## Jim

Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10  
Novell/SUSE/NetIQ Knowledge Partner

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [August 15, 2017, 5:11pm UTC](https://forums.suse.com/t/ldapsearch-groups/30158/5 "2017-08-15T17:11:06Z")

</div>

Thanks so much for your time and info on this.

On 08/10/2017 08:45 PM, Jim Henderson wrote:[color=blue]

> On Thu, 10 Aug 2017 20:18:20 +0000, tBM wrote:  
> [color=green]
> 
> > Is it possible with an ldapsearch filter to list the members of one  
> > group that do not appear as members of two other groups?[/color]
> 
> Offhand, I can’t think of a way to do this, because LDAP’s search filter  
> mechanism doesn’t support intersection-style operators.
> 
> I’d be most inclined to extract the data from the three groups in  
> question and then process that data to make a determination - I’d  
> probably write a script to parse the LDIF output into a CSV for each and  
> then pull it into a spreadsheet to do the analysis.
> 
> Jim  
> [/color]

## –

tBM 🙂
