From 86ec0fddae2c6f3a39a51034e920d1b3ee1344d8 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Oct 22 2015 16:25:45 +0000 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 (cherry picked from commit 86ffb3db2a6e798aaa920a0b40e0c517db8c293f) --- diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index 5b4fd9d..b614a70 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) {