From: Howard Chu Date: Thu, 11 Apr 2002 08:59:30 +0000 (+0000) Subject: ITS#1727 return allids on unknown filters to allow extended filtering X-Git-Tag: OPENLDAP_REL_ENG_2_MP~222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1dcbb23f5bdb8bcd5e6b17287ee6bd50c70d413e;p=openldap ITS#1727 return allids on unknown filters to allow extended filtering --- diff --git a/servers/slapd/back-ldbm/filterindex.c b/servers/slapd/back-ldbm/filterindex.c index 58c8e268ab..bc370f239b 100644 --- a/servers/slapd/back-ldbm/filterindex.c +++ b/servers/slapd/back-ldbm/filterindex.c @@ -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