From: <mi...@st...> - 2003-03-23 19:58:02
|
Michael Str=F6der wrote: >=20 > From the examples I saw OpenLDAP's ldap_count_entries() is typically=20 > used right before ldap_first_entry(). Is that right? Does=20 > ldap_count_entries() consume anything from the results returned? >=20 > Unfortunately the call of ldap_first_entry() in python-ldap is hidden i= n=20 > LDAPmessage_to_python() (see Modules/message.c) which in turn is called= =20 > by the already overloaded l_ldap_result() (see Modules/LDAPObject.c).=20 > Changing anything here would result in a incompatible API change. To rephrase my answer: Unfortunately ldap_count_entries() has to be calle= d=20 *after* ldap_result() and *before* ldap_first_entry(). > Now if ldap_count_entries() does not consume anything from the results = > returned we could try to implement a solution for the following=20 > (fictious) Python code using async search: Forget about that. Ciao, Michael. |