#3182 sssd does not refresh expired cache entries with enumerate=true
Closed: Fixed Opened by pcech.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1359208

Configuration:
enumerate = true
entry_cache_timeout = 30
enum_cache_timeout = 30
Reproducer:
# prepare
ipa user-add --first=Test --last=User --email=tuser@persei.cz tuser
ipa group-add tgroup_1
# repeat
systemctl stop sssd
sudo su -c "rm -f /var/lib/sss/db/*"
sudo su -c "rm -f /var/lib/sss/mc/*"
sssctl logs-remove && systemctl start sssd
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1
ipa group-add-member --users=tuser tgroup_1
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1
ipa group-remove-member --users tuser tgroup_1
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
owner: somebody => pcech
review: True => 0
selected: =>
testsupdated: => 0

Fields changed

version: 1.14 beta => 1.13.0

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.15 Beta

This issue is solved by e0903f41922721edf292a9f7e6605a4519db53a1 in #2940.

Manually checked by:

#Configuration from Description above.
# prepare
ipa user-add --first=Test --last=User --email=tuser@persei.cz tuser
ipa group-add tgroup_1
# repeat
systemctl daemon-reload
sudo su -c "truncate -s0 /var/log/sssd/*.log"
sudo su -c "rm -f /var/lib/sss/db/*" 
sudo su -c "rm -f /var/lib/sss/mc/*"
sudo systemctl restart sssd.service
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1
ipa group-add-member --users=tuser tgroup_1
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1
# wait
ipa group-remove-member --users tuser tgroup_1
date; SSS_NSS_USE_MEMCACHE=NO getent group tgroup_1
# cleaning
ipa group-del tgroup_1
ipa user-del tuser

Fields changed

resolution: => fixed
status: new => closed

Metadata Update from @pcech:
- Issue assigned to pcech
- Issue set to the milestone: SSSD 1.15.3

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4215

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata