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 1224682

Summary: SSSD cache should be cleared after ipa-restore
Product: Red Hat Enterprise Linux 7 Reporter: Martin Kosek <mkosek>
Component: doc-Linux_Domain_Identity_Management_GuideAssignee: Marc Muehlfeld <mmuehlfe>
Status: CLOSED CURRENTRELEASE QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: apetrova, jhrozek, mmuehlfe
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-10 11:54:56 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 Martin Kosek 2015-05-25 10:34:33 UTC
Description of problem:
When IPA master is backed up and then restored, authentication does not work until SSSD caches are clear and restarted. Guide should have a note about it.

Related freeipa-users thread with more information:
https://www.redhat.com/archives/freeipa-users/2015-May/msg00493.html

Version-Release number of selected component (if applicable):
ipa-client-4.1.0-18.el7_1.3

Document URL: 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/restore.html

Comment 1 Martin Kosek 2015-05-25 10:36:48 UTC
Jakub, I would welcome your advice what is the recommended procedure for restoring SSSD/clearing the caches causing FAST CCACHE issues in the referred thread.

Right now, the user simply used:

    systemctl stop sssd
    rm -f /var/lib/sss/db/*
    systemctl start sssd

Comment 2 Jakub Hrozek 2015-05-25 11:28:51 UTC
Also rm /var/lib/sss/pubconf/* and /var/lib/sss/mc/*

You could go as far as:
# find /var/lib/sss/ ! -type d | xargs rm -f
As everything except the directories can be recreated, but that's probably an overkill.

Comment 4 Aneta Šteflová Petrová 2016-06-10 11:54:56 UTC
Published in an asynchronous update.