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/ldap | |
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/ldap')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |