I'm using sssd
in order to work with LDAP users and groups within our Linux environment.
I had to rename the LDAP group of one of my Linux users and I noticed that after I finished editing the group, when I ran:
id username
on the Linux machine it kept showing the previous name (before the rename).
I've tried rebooting the server but the cache wasn't cleaned and kept showing me the previous group name.
I searched Google and found the next command, in redhat's official site:
sss_cache -E
This fixed my issue and cleared the sssd cache and in the next time I ran:
id user
the right group name displayed.
But my questions are:
1. How come a full server reboot didn't clear the cache?
2. How can I make sure the cache gets deleted when the server is rebooted?
Thanks in advance