URL:
https://github.com/SSSD/sssd/pull/453
Title: #453: Speed up by-ID lookups with the help of the Global Catalog
pbrezina commented:
"""
Is it possible to make the cache req code more straightforward instead of mixing logic of
locating domain and normal domain search?
I.e. create a request, say `cache_req_locate_domain` which would locate the domain if
possible and decide what domain(s) to search. In other words, is it possible for the code
to read like this?
```c
cache_req_search_domains_send()
-> cache_req_locate_domain_send()
<- got single domain, or multiple domains
-> cache_req_search_domains_next() and proceed as usual
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/453#issuecomment-346335962