CACHE_REQ: Add plugin methods required for the domain-locator request
Adds three new cache_req plugin methods:
- cache_req_dp_get_domain_check_fn - check if it is time to run the
locator request again
- cache_req_dp_get_domain_send/recv_fn - run the locator itself
The reason we added also the checker is that when the locator runs,
we add a temporary entry into the negative cache that would denote that
the locator ran and the ordinary domain negative cache (UID negcache,
GID negcache, ..) were set for the domains and can be still used to
skip domains that we know do not contain the account without calling
the getAccountDomain handler again.
If we didn't have this checker, requesting an entry from a domain
further down the domain list would always call the locator, only
to always receive the same results.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>