More for ITS#3939

This commit is contained in:
Howard Chu 2005-11-20 22:14:57 +00:00
parent 3429c5a566
commit 12d2901162

View File

@ -510,7 +510,11 @@ findcsn_cb( Operation *op, SlapReply *rs )
{
slap_callback *sc = op->o_callback;
if ( rs->sr_type == REP_SEARCH && rs->sr_err == LDAP_SUCCESS ) {
/* We just want to know that at least one exists, so it's OK if
* we exceed the unchecked limit.
*/
if ( rs->sr_err == LDAP_ADMINLIMIT_EXCEEDED ||
(rs->sr_type == REP_SEARCH && rs->sr_err == LDAP_SUCCESS )) {
sc->sc_private = (void *)1;
}
return LDAP_SUCCESS;