Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 902269

Summary: local provider: All member users are not returned on looking up top level parent group.
Product: Red Hat Enterprise Linux 6 Reporter: Kaushik Banerjee <kbanerje>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED DUPLICATE QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: grajaiya, jgalipea, okos, pbrezina
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-21 10:33:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kaushik Banerjee 2013-01-21 09:36:33 UTC
Description of problem:
All member users are not returned on looking up top level parent group

Version-Release number of selected component (if applicable):
1.9.2-74

How reproducible:
Always

Steps to Reproduce:
1. sssd.conf domain section:
[domain/LOCAL]
id_provider = local

2. Add the groups as follows:
parent(member: user1, child)
child(member: user2)

3. 
# sss_groupadd parent
# sss_groupadd child
# sss_groupmod -a parent child
# sss_useradd user1
# sss_useradd user2
# sss_usermod -a parent user1
# sss_usermod -a child user2
# getent -s sss group parent
parent:*:1000:user1         <== user1,user2 should have been returned.

  
Actual results:
Child member is not returned on lookup up parent group.

Expected results:
All members should be returned.

Additional info:
This was working as expected till version 1.9.2-68

Comment 2 Jakub Hrozek 2013-01-21 09:45:53 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1775

Comment 3 Jakub Hrozek 2013-01-21 10:12:28 UTC
(In reply to comment #0)
> This was working as expected till version 1.9.2-68

It was, but pretty much by accident only because nobody requested the parent group before. The root cause of the bug is that when we modify the parent group with "sss_usermod -a parent user1" we invalidate the memory entry of parent in memory cache, but we only invalidate the child group when adding user2 into it.

The proper fix is to invalidate all parent groups of groups being modified, too.

Comment 4 Kaushik Banerjee 2013-01-21 10:33:57 UTC

*** This bug has been marked as a duplicate of bug 895132 ***