Hi again, and thanks again.

In the end I decided to make things simpler, for users and for me. In
the latest 1.5.3 the Json2Ldap gateway will return results only if the
search operation completed; if the operation was interrupted due to a
(time|size|admin)LimitExceeded error, the user will be notified of
this and any partial results will be discarded. Otherwise, on success
(0), users receive a JSON-RPC result which is a JSON object with array
"matches" and array "referrals". Busy web guys appreciate APIs that
are easy to process, so I hope that's optimal. Here is the search JSON
API btw: http://software.dzhuvinov.com/json2ldap-api.html#ldap.search


Regarding limits, I noticed some interesting behaviour with OpenDS:
the limits seem to be handled in a asynchronous manner, so
occasionally I witness overruns. For example, if the size limit is set
to 1000, sometimes I do get this number, but other times the server
allows more results to get through, e.g. 1023.


-- 
Vladimir Dzhuvinov :: software.dzhuvinov.com

Reply via email to