]> git.sur5r.net Git - openldap/commitdiff
ITS#1727 return allids on unknown filters to allow extended filtering
authorHoward Chu <hyc@openldap.org>
Thu, 11 Apr 2002 08:59:30 +0000 (08:59 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 Apr 2002 08:59:30 +0000 (08:59 +0000)
servers/slapd/back-ldbm/filterindex.c

index 58c8e268ab5239bbfcd70a07c9e15ae543eb6f81..bc370f239b6916d167899796e692ca9e6c52cf62 100644 (file)
@@ -187,6 +187,18 @@ filter_candidates(
                 */
                result = idl_allids( be );
                break;
+       default:
+#ifdef NEW_LOGGING
+               LDAP_LOG(( "filter", LDAP_LEVEL_DETAIL1,
+                          "filter_candidates:  UNKNOWN\n" ));
+#else
+               Debug( LDAP_DEBUG_FILTER, "\tUNKNOWN\n", 0, 0, 0 );
+#endif
+               /* unknown filters must not return NULL, to allow
+                * extended filter processing to be done later.
+                */
+               result = idl_allids( be );
+               break;
        }
 
 #ifdef NEW_LOGGING