mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: clear initgroups cache in clear_sssd_cache
The tasks module provides a method to clear sssd cache, but the method does not remove the file /var/lib/sss/mc/initgroups. Update the method to also remove this file. Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
@@ -342,6 +342,7 @@ class BasePathNamespace:
|
||||
SSSD_DB = "/var/lib/sss/db"
|
||||
SSSD_MC_GROUP = "/var/lib/sss/mc/group"
|
||||
SSSD_MC_PASSWD = "/var/lib/sss/mc/passwd"
|
||||
SSSD_MC_INITGROUPS = "/var/lib/sss/mc/initgroups"
|
||||
SSSD_PUBCONF_DIR = "/var/lib/sss/pubconf"
|
||||
SSSD_PUBCONF_KNOWN_HOSTS = "/var/lib/sss/pubconf/known_hosts"
|
||||
SSSD_PUBCONF_KRB5_INCLUDE_D_DIR = "/var/lib/sss/pubconf/krb5.include.d/"
|
||||
|
||||
@@ -872,6 +872,7 @@ def clear_sssd_cache(host):
|
||||
"xargs rm -fv")
|
||||
host.run_command(['rm', '-fv', paths.SSSD_MC_GROUP])
|
||||
host.run_command(['rm', '-fv', paths.SSSD_MC_PASSWD])
|
||||
host.run_command(['rm', '-fv', paths.SSSD_MC_INITGROUPS])
|
||||
|
||||
if systemd_available:
|
||||
host.run_command(['systemctl', 'start', 'sssd'])
|
||||
|
||||
Reference in New Issue
Block a user