#7376 clear sssd cache when uninstalling client
Closed: fixed 6 years ago Opened 6 years ago by rcritten.

Issue

The SSSD cache is not cleared when uninstalling an IPA client. For tidiness we should wipe the cache. This can be done with sssctll which is not available everywhere so it should be tested for. On a command line you'd call something like:

% test -x /usr/bin/sssctl && sssctl cache-remove -o

Note that this tool is in sssd-tools which is not currently a dependency.


Though I found this code is present for cache clearing.
# ipaclient/install/client.py
# Clean up the SSSD cache before SSSD service is stopped or restarted
remove_file(paths.SSSD_MC_GROUP)
remove_file(paths.SSSD_MC_PASSWD)

But we can add following as part of change:
remove_file(paths.SSSD_MC_GROUP)
remove_file(paths.SSSD_MC_PASSWD)
try:
run(["sssctl","cache-remove","-o"])
except Exception as e:
raise ScriptError(
"sssd-tools package not installed".format(e),
rval=CLIENT_INSTALL_ERROR)

master:

  • ccec8c6 clear sssd cache when uninstalling client
  • b0d8c6c clear sssd cache when uninstalling client

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

master:

  • 1c1089c ipa-client package needs sssd-tool

Login to comment on this ticket.

Metadata