From 1dcbb23f5bdb8bcd5e6b17287ee6bd50c70d413e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 Apr 2002 08:59:30 +0000 Subject: [PATCH] ITS#1727 return allids on unknown filters to allow extended filtering --- servers/slapd/back-ldbm/filterindex.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.39.5