Server search-time-limit timeout problem

"Kulkarni, Rahul" <[email protected]> Mon, 10 Jan 2011 01:30:46 -0600
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <0AA78238509AE34D834C28DEF3D9441D17AD6386@PHXCCRPRD04.adprod.bmc.com>
Hi All,

I have the sun directory server v6.0 On Solaris 10 platform and have 50,000+ entries in the directory server. The search-time-limit (nsTimeLimit) set for the server (and not for individual account) is 6 mins.

While performing search operation using the APIs (ldap_search_ext & ldap_result), when the server is heavily loaded by other applications, the search doesn't return all the relevant/expected entries. When this happens, the server reports the err=3 (i.e. search-time-limit exceeded) error in access log. However, both the Mozilla SDK APIs used i.e. ldap_search_ext & ldap_result do not propagate this error to the client application; instead it returns success code.

Am I missing anything here? How can get the correct error code (err=3) when the search-time-limit on server side exceeds. Or is it the expected behavior of the Mozilla SDK APIs used?

Any help in this regard will be highly appreciated.

Thanks and Regards,
// Rahul