]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8967 additional check
authorHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2021 09:18:32 +0000 (09:18 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2021 09:18:32 +0000 (09:18 +0000)
servers/slapd/back-mdb/search.c

index 43cd4bc4aae610abbf71825f6fe1001eea3f77e8..edcf68fe1dcaa56867ae869223d3f83deef6f992 100644 (file)
@@ -774,7 +774,7 @@ adminlimit:
        if ( nsubs < ncand ) {
                int rc;
                /* Do scope-based search */
-               if ( nsubs > (unsigned) op->ors_limit->lms_s_unchecked )
+               if ( admincheck && nsubs > (unsigned) op->ors_limit->lms_s_unchecked )
                        goto adminlimit;
 
                /* if any alias scopes were set, save them */