]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/filterentry.c
DB_RMW flag to dn2id and id2entry
[openldap] / servers / slapd / filterentry.c
index d808ea71542aedba7d509adc4e429b6cf6ee0a9d..af513e29c565ca7035d0529a0ca3db57d1ab9c12 100644 (file)
@@ -233,17 +233,6 @@ static int test_mra_filter(
                return LDAP_INSUFFICIENT_ACCESS;
        }
 
-       if( strcmp(mra->ma_rule->smr_syntax->ssyn_oid,
-               mra->ma_desc->ad_type->sat_syntax->ssyn_oid) != 0)
-       {
-               return LDAP_INVALID_SYNTAX;
-       }
-
-       if( mra->ma_rule == NULL )
-       {
-               return LDAP_INAPPROPRIATE_MATCHING;
-       }
-
        for(a = attrs_find( e->e_attrs, mra->ma_desc );
                a != NULL;
                a = attrs_find( a->a_next, mra->ma_desc ) )
@@ -263,7 +252,7 @@ static int test_mra_filter(
                                return rc;
                        }
 
-                       if ( ret ) {
+                       if ( ret == 0 ) {
                                return LDAP_COMPARE_TRUE;
                        }
                }