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/ldap/ldap_id.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/providers/ldap/ldap_id.c') diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 073f6869..4d373a49 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -1058,6 +1058,12 @@ void sdap_handle_account_info(struct be_req *breq, struct sdap_id_ctx *ctx) return sdap_handler_done(breq, DP_ERR_OK, EOK, "Success"); } + if (ar->filter_type == BE_FILTER_SECID) { + ret = EINVAL; + err = "Invalid filter type"; + break; + } + req = services_get_send(breq, be_ctx->ev, ctx, ar->filter_value, ar->extra_value, -- cgit