]> git.sur5r.net Git - openldap/commitdiff
s/LDAP_UNWILLING_TO_PERFORM/LDAP_ADMINLIMIT_EXCEEDED/ when search candidates exceed...
authorPierangelo Masarati <ando@openldap.org>
Fri, 3 May 2002 10:27:37 +0000 (10:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 3 May 2002 10:27:37 +0000 (10:27 +0000)
servers/slapd/back-bdb/search.c
servers/slapd/back-ldbm/search.c

index 300424ff049083762bb13c03d24ed044d26ddecf..9887feb342c6515c777c11af87c1e1cb0a8d31c0 100644 (file)
@@ -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;
index 3bdad07caa9bc114646a39b65b7a57a9b13c41ff..91549f1b8b4c8d4a2d3b013df766e0e304ce1920 100644 (file)
@@ -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;