summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2015-10-19 10:29:05 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-10-22 18:19:57 +0200
commit86ffb3db2a6e798aaa920a0b40e0c517db8c293f (patch)
tree26b2e5727b43f82575ad4301c3c11547647586b0
parent108af0012e016b464790478b8aa3ad60e712930f (diff)
downloadsssd-86ffb3db2a6e798aaa920a0b40e0c517db8c293f.tar.gz
sssd-86ffb3db2a6e798aaa920a0b40e0c517db8c293f.tar.xz
sssd-86ffb3db2a6e798aaa920a0b40e0c517db8c293f.zip
SDAP: pass params in sdap_get_and_parse_generic_send
Previously some arguments passed to sdap_get_and_parse_generic_send() were ignored. This patch fixes that and passes 'attronly', 'serverctrls' and 'clientctrls' to sdap_get_generic_ext_send(). Reviewed-by: Sumit Bose <sbose@redhat.com>
-rw-r--r--src/providers/ldap/sdap_async.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index 5b4fd9d00..b614a7059 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -1725,9 +1725,13 @@ struct tevent_req *sdap_get_and_parse_generic_send(TALLOC_CTX *memctx,
flags |= SDAP_SRCH_FLG_PAGING;
}
+ if (attrsonly) {
+ flags |= SDAP_SRCH_FLG_ATTRS_ONLY;
+ }
+
subreq = sdap_get_generic_ext_send(state, ev, opts, sh, search_base,
- scope, filter, attrs, NULL,
- NULL, sizelimit, timeout,
+ scope, filter, attrs, serverctrls,
+ clientctrls, sizelimit, timeout,
sdap_get_and_parse_generic_parse_entry,
state, flags);
if (!subreq) {