diff options
author | Sumit Bose <sbose@redhat.com> | 2013-04-11 18:23:27 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-02 19:33:56 +0200 |
commit | 206329d3901738036352f2ac1e8d7804f728861d (patch) | |
tree | 199e9c2e2675e69fa9b10af9de9ae05f56a62a5d /src/providers/proxy | |
parent | 1ae6d34788fd6ac2278be52b60d77c77073d98f3 (diff) | |
download | sssd-206329d3901738036352f2ac1e8d7804f728861d.tar.gz sssd-206329d3901738036352f2ac1e8d7804f728861d.tar.bz2 sssd-206329d3901738036352f2ac1e8d7804f728861d.zip |
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.
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_id.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |