summaryrefslogtreecommitdiffstats
path: root/src/responder/common/cache_req/plugins/cache_req_group_by_id.c
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2017-04-25 14:14:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-05-10 15:03:11 +0200
commitf24ee5cca4cd43e7edf26fec453fbd99392bbe4b (patch)
tree6cb5c491b35e56046caa0cf31901a176456a989c /src/responder/common/cache_req/plugins/cache_req_group_by_id.c
parenta012a71f21bf1a4687e58085f19c18cc5b2bbadd (diff)
downloadsssd-f24ee5cca4cd43e7edf26fec453fbd99392bbe4b.tar.gz
sssd-f24ee5cca4cd43e7edf26fec453fbd99392bbe4b.tar.xz
sssd-f24ee5cca4cd43e7edf26fec453fbd99392bbe4b.zip
CACHE_REQ: Add a new cache_req_ncache_filter_fn() plugin function
This function will be responsible for filtering out all the results that we have that are also present in the negative cache. This is useful mainly for plugins which don't use name as an input token but can still be affected by filter_{users,groups} options. For now this new function is not being used anywhere. Related: https://pagure.io/SSSD/sssd/issue/3362 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/common/cache_req/plugins/cache_req_group_by_id.c')
-rw-r--r--src/responder/common/cache_req/plugins/cache_req_group_by_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/common/cache_req/plugins/cache_req_group_by_id.c b/src/responder/common/cache_req/plugins/cache_req_group_by_id.c
index ad5b7d890..5613bf67c 100644
--- a/src/responder/common/cache_req/plugins/cache_req_group_by_id.c
+++ b/src/responder/common/cache_req/plugins/cache_req_group_by_id.c
@@ -144,6 +144,7 @@ const struct cache_req_plugin cache_req_group_by_id = {
.global_ncache_add_fn = cache_req_group_by_id_global_ncache_add,
.ncache_check_fn = cache_req_group_by_id_ncache_check,
.ncache_add_fn = NULL,
+ .ncache_filter_fn = NULL,
.lookup_fn = cache_req_group_by_id_lookup,
.dp_send_fn = cache_req_group_by_id_dp_send,
.dp_recv_fn = cache_req_common_dp_recv