On Mon, 2012-09-10 at 16:21 +0200, Ondrej Valousek wrote:
Hi List,
I wanted to use sss_cache to find out whether sssd is running in a
connected or disconnected mode, but I found out it is not working the
way I expected.
Example:
1.
# id -a ondrej
- shows something about me.
2.
# sss_cache -u ondrej
- I expect all information about me is trashed
3.
# id -a ondrej
- still shows information about me even if no ldap provider is
available to connect. Evidently sssd still returns cached information.
Is this a normal behavior or is this a bug?
Thanks,
sss_cache does not *delete* information. This is by design. It
immediately *expires* it so that the next request for it will go back to
the server and refresh it.
The reason not to delete it is that if you're offline (or go that way
immediately after running sss_cache) you will not lose all your file
access.
It's also important to note
https://fedorahosted.org/sssd/ticket/1311 if
you happen to be running our 1.9.0 pre-releases.