URL:
https://github.com/SSSD/sssd/pull/644
Title: #644: When multiple UIDs exist, use the username provided by the user as the first
lookup
simo5 commented:
"""
@joefischietti we can fixate a user name at login time in the cache but:
a) that may be overidden by a later login if the user uses the "other" name.
b) that may change once the cache expires and someone performs an anumeration (like with
ls -l) that returns the other name first.
Now we can address (b) by forcing the code to prefer keeping the existing name in the
cache on cache refreshes, but we cannot solve (a), nor we can predict which username will
be used *before* the user ever logs in (or after a cache is wiped).
So there will be cases when a username change will happen in the system and that can cause
issues in components that rely on uid -> name mappings.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/644#issuecomment-430690811