From 206329d3901738036352f2ac1e8d7804f728861d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 11 Apr 2013 18:23:27 +0200 Subject: Add secid filter to responder-dp protocol This patch add a new filter type to the data-provider interface which can be used for SID-based lookups. --- src/providers/proxy/proxy_id.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/providers/proxy') diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 7d7fab20..aae3ee8f 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -1364,6 +1364,12 @@ void proxy_get_account_info(struct be_req *breq) return be_req_terminate(breq, DP_ERR_FATAL, EINVAL, "Invalid attr type"); } + /* proxy provider does not support security ID lookups */ + if (ar->filter_type == BE_FILTER_SECID) { + return be_req_terminate(breq, DP_ERR_FATAL, ENOSYS, + "Invalid filter type"); + } + switch (ar->entry_type & BE_REQ_TYPE_MASK) { case BE_REQ_USER: /* user */ switch (ar->filter_type) { -- cgit