Hello, "You won't get the count without retrieving the results." I believe when you call a ldap_search_s(), the last argument of the function LDAPmessage *result stores the result from the ldap search. If it is true, what should be the next call to get the number of entries ? and if not, what should be the functions call that i have to make to get the count.
Regards, PKHUN On Thu, Sep 6, 2012 at 12:33 AM, Michael Ströder <[email protected]>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. > > > "true/false for the particular filter" means following : > > 1.) If execute a filter , respond with >0 entry ---> true > > 2.) If execute a filter , respond with = 0 entry --> false. > > > > Note : i have nothing to do with the attributes for the corresponding > entries > > return for the search. So i am looking for a optimized way here which > just let > > me know if any entry is available or not for particular filter. > > This is something different: > Simply set sizelimit=1 when using ldap_search_ext_s() and return true if > one > result was received. > > Ciao, Michael. > > >
