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 881773

Summary: mmap cache needs update after db changes
Product: Red Hat Enterprise Linux 6 Reporter: Dmitri Pal <dpal>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: grajaiya, jgalipea, okos, pbrezina, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.9.2-34.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:41:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 886216    

Description Dmitri Pal 2012-11-29 14:45:51 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/1671

In the nested groups case we use the memberof plugin to make changes db-wise for changing memberships, however this means changes are not reflected in the mmap cache until the mmap entry naturally expires and is refreshed.
Upon db changes we should make a quick search right after the memberof plugin has done it's work (using modifytimestamp ?) and expire any mmap cache entry that has been chahnged in the db.
This will cause th first app that need s the entry to call into sssd and refresh it with proper values.

Comment 2 Kaushik Banerjee 2013-01-15 08:26:53 UTC
Verified in version 1.9.2-68

Output from beaker automation run:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: 2307bis_011 - bz881773 - mmap cache needs update after db changes
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
[  OK  ]
:: [09:30:06] ::  Sleeping for 5 seconds
adding new entry "uid=mof_user8,dc=example,dc=com"

adding new entry "cn=mofuser8_grp1,dc=example,dc=com"

adding new entry "cn=mofuser8_grp2,dc=example,dc=com"

88881 88882
:: [   PASS   ] :: Running 'id -G mof_user8 | grep 88881 | grep 88882'
adding new entry "cn=mofuser8_grp3,dc=example,dc=com"

spawn ssh -q -l mof_user8 localhost echo 'login successful'
mof_user8@localhost's password: 
Could not chdir to home directory /home/mof_user8: No such file or directory
login successful
:: [   PASS   ] :: Authentication successful, as expected
:: [   PASS   ] :: Running 'auth_success mof_user8 Secret123'
88881 88882 88883
:: [   PASS   ] :: Running 'id -G mof_user8 | grep 88881 | grep 88882 | grep 88883'
'27ea4a42-a708-4f43-ada4-af1b27e019ca'
2307bis-011-bz881773-mmap-cache-needs-update-after-db-changes result: PASS

Comment 3 errata-xmlrpc 2013-02-21 09:41:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0508.html