Dear Maintainer,
I've discovered, after a few days of troubleshooting, that sssd's caching is
doing strange things.
With a clean cache (via sss_cache -E), the first query (getent, an ssh login,
etc), things work. Subsequent queries fail to return unixHomeDirectory and
probably other things, dumping the user at /.
I've confirmed that sssd appears to do this (amongst other attributes):
[sssd[be[some.domain]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [unixHomeDirectory]
And then does:
[sssd[be[some.domain]]] [sysdb_remove_attrs] (0x2000): Removing attribute [homeDirectory] from [username]
It then commits this to its cache -- ie. it is entirely missing.
Then, further queries consult the cache, get a hit from it, but don't re-query
for these attributes, returning empty/null.
I've confired the cache is empty using ldbsearch, and seeing sssd log this:
[sssd[be[some.domain]]] [krb5_auth_send] (0x0100): Home directory for user [username] not known.
I've worked around this by setting entry_cache_timeout = 0 and the issue is
"fixed".