mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
s/LDAP_UNWILLING_TO_PERFORM/LDAP_ADMINLIMIT_EXCEEDED/ when search candidates exceed unckecked limit
This commit is contained in:
parent
8c152396b9
commit
033631f30a
2 changed files with 2 additions and 2 deletions
|
|
@ -294,7 +294,7 @@ bdb_search(
|
|||
if ( !isroot && limit->lms_s_unchecked != -1 ) {
|
||||
if ( BDB_IDL_N(candidates) > (unsigned) limit->lms_s_unchecked ) {
|
||||
send_search_result( conn, op,
|
||||
LDAP_UNWILLING_TO_PERFORM,
|
||||
LDAP_ADMINLIMIT_EXCEEDED,
|
||||
NULL, NULL, NULL, NULL, 0 );
|
||||
rc = 1;
|
||||
goto done;
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ searchit:
|
|||
/* if candidates exceed to-be-checked entries, abort */
|
||||
if ( !isroot && limit->lms_s_unchecked != -1 ) {
|
||||
if ( ID_BLOCK_NIDS( candidates ) > (unsigned) limit->lms_s_unchecked ) {
|
||||
send_search_result( conn, op, LDAP_UNWILLING_TO_PERFORM,
|
||||
send_search_result( conn, op, LDAP_ADMINLIMIT_EXCEEDED,
|
||||
NULL, NULL, NULL, NULL, 0 );
|
||||
rc = 0;
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue