Hello Quanah, then, what should i do to attach the no-op control for the ldap_search_s() operation ?
Regards, PKHUN
On Thu, Sep 6, 2012 at 12:48 AM, Quanah Gibson-Mount quanah@zimbra.comwrote:
--On Wednesday, September 05, 2012 9:03 PM +0200 Michael Ströder < michael@stroeder.com> wrote:
Puneet Khunteta wrote:
Basically i need the count how many SearchResultEntry responses you get from ldap_search_s().
You won't get the count without retrieving the results.
Incorrect. You can use the noop control to do this. We actually do this now in Zimbra to get the total number of accounts in LDAP without having to get the full result set back.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org