> Is there a way in LDAP to make the server itself perform the count and > return back only the result? Can we use 'LDAP control' for this? I thought of doing the following:
--------- // Note: attribute list is NULL int searchStatus = ldap_search_s( LDAPPtr , "o=ldap_abc.de" , LDAP_SCOPE_SUBTREE , "(ou=Mkt)" , NULL , 0 , &response ) ; int countOfResultEntries = ldap_count_entries( LDAPPtr , response ) ; --------- The above approach gives back the 'count' correctly. Now, my only concern is whether any entries will be returned to the client(what I want is to get only the 'count' and nothing else in the client side), eventhough I have made the required 'attribute list' as NULL. Does anybody have information on what will be the behaviour? Thanks! --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
