URL:
https://github.com/SSSD/sssd/pull/5663
Title: #5663: [WIP] cache_req: replace FQNs by shortnames
ikerexxe commented:
"""
If think what needs to be done is to parse the name anyway to always
get non-qualified name and then check if the domain from parsed group name equals to
domain from the input parameter for safety.
This isn't possible for all plugins. The filter plugins should avoid parsing the name,
but I don't know how to do it cleanly. Two methods come to my mind. The first one
consists in changing the `parse_name` to false for `cache_req_group_by_filter` and
`cache_req_user_by_filter`. The other one to check the plugin name in the condition as
follows:
`if (cr->plugin->parse_name == false || strstr(cr->plugin->name,
"filter"))`. What do you think?
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5663#issuecomment-864954486