From: Michael <mi...@st...> - 2000-10-17 15:43:48
|
Konstantin Chuguev wrote: > > > > The only problem is, if the search done in w2lsearch.py returns > > > both > > > normal entries and referral(s), an exception will be raised in > > > the end, > > > passing the control to w2lreferral.py, and the list of normal > > > values will > > > be lost. Perhaps you should handle except ldap.PARTIAL_RESULTS in > > > w2lsearch.py itself? > > > > Hmm, I think if doing a search with scope one/sub and a search > > continuation is received together with normal search results > > l_ldap_result() should return a different result type instead of > > raising ldap.PARTIAL_RESULTS. I could then gracefully handle the > > search continuation in the while loop. Do you think this could be > > done based on the OpenLDAP 1.2.x libs? > > > > For a one-level search (browsing mode), it would be nice if entries referenced > by referrals and thus held on other servers were shown almost like local > entries in the list I tried this with the new patch. Unfortunately if a referral (search continuation) during one level search raises an exception there will no results returned afterwards. The next call of result() method (ldap_result() function of C API) blocks. Also the exception object does neither contain the full LDAP URL or the DN of the referral entry. => there's currently no way to retrieve search continuations and normal search results together without modifying python-ldap. Ciao, Michael. |