]> git.sur5r.net Git - openldap/commitdiff
Handle SLAPD_FILTER_COMPUTED cases
authorHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 00:42:54 +0000 (00:42 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 00:42:54 +0000 (00:42 +0000)
servers/slapd/back-bdb/filterindex.c

index 0322c4ea087bc7eaf8360ec57ee5088008a1934c..ebfc607eccf0d6344c7295f93735536e69ddc0ac 100644 (file)
@@ -59,6 +59,17 @@ bdb_filter_candidates(
 
        switch ( f->f_choice ) {
        case SLAPD_FILTER_COMPUTED:
+               switch( f->f_result ) {
+               case LDAP_COMPARE_FALSE:
+                       BDB_IDL_ZERO( ids );
+                       break;
+               case LDAP_COMPARE_TRUE: {
+                       struct bdb_info *bdb = (struct bdb_info *)op->o_bd->be_private;
+                       BDB_IDL_ALL( bdb, ids );
+                       } break;
+               case SLAPD_COMPARE_UNDEFINED:
+                       break;
+               }
                break;
 
        case SLAPD_FILTER_DN_ONE: