summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-05-25 10:21:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-01 15:18:57 +0200
commit40bc389bc79bc41429b5a92d5ce75955f8eefaf5 (patch)
tree24190daa89e43d3804440f67db07ce1e24c543ca /src/providers/ldap/ldap_common.h
parentd9296ba018228ac6a19f710b8bb9044c4ea9ab5b (diff)
downloadsssd-40bc389bc79bc41429b5a92d5ce75955f8eefaf5.tar.gz
sssd-40bc389bc79bc41429b5a92d5ce75955f8eefaf5.tar.xz
sssd-40bc389bc79bc41429b5a92d5ce75955f8eefaf5.zip
Skip enumeration requests in IPA and AD providers as well
Checking the enum request in the underlying LDAP provider to skip it might be too late as the richer IPA or AD providers depend on having a useful result when the sdap request finishes. Move the enumeration check earlier instead and allow directly in the IPA or AD handler. Related: https://fedorahosted.org/sssd/ticket/2659 Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ldap/ldap_common.h')
-rw-r--r--src/providers/ldap/ldap_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h
index 57ad1b845..c142af345 100644
--- a/src/providers/ldap/ldap_common.h
+++ b/src/providers/ldap/ldap_common.h
@@ -102,6 +102,9 @@ int sdap_id_setup_tasks(struct be_ctx *be_ctx,
be_ptask_recv_t recv_fn,
void *pvt);
+/* Allow shortcutting an enumeration request */
+bool sdap_is_enum_request(struct be_acct_req *ar);
+
struct tevent_req *
sdap_handle_acct_req_send(TALLOC_CTX *mem_ctx,
struct be_ctx *be_ctx,