Immediate clear Active Directory cache in linux server (centos7)

sssd cache needed when linux server has lost contact with Active Directory server, people can still login without it but sometimes we need to clear Active Directory cache for security reason e.g you have to revoke sudo profile out of user as we speak.  

Neither "sss_cache -E"   nor "systemctl stop sssd; rm -rf /var/lib/sss/db/*; systemctl restart sssd" would help us to immediate clear Active Directory cache in linux server when user still login. 


The best way is force down the user session on linux server (kill -9 PID).


Comments

Popular posts from this blog

OSS RC : learning by doing (new beginning)

How to ensure a new Domain Controller server replicate to others within Active Directory Domain Services (Windows server 2019)

RSYNC via SSH on solaris 10