From 86ffb3db2a6e798aaa920a0b40e0c517db8c293f Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Mon, 19 Oct 2015 10:29:05 -0400 Subject: 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 --- src/providers/ldap/sdap_async.c | 8 ++++++-- 1 file 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) { -- cgit