]> git.sur5r.net Git - openldap/commitdiff
Add a comment to the check which needs extending to support
authorKurt Zeilenga <kurt@openldap.org>
Mon, 11 Mar 2002 16:12:36 +0000 (16:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 11 Mar 2002 16:12:36 +0000 (16:12 +0000)
new extensible matching rules.

servers/slapd/filterentry.c

index 34bc6f1b773ec4cabced71ab806a8a8e7ed9d6be..cbd9c1438be6d7e8db0465cf96a4302c892e40df 100644 (file)
@@ -237,7 +237,10 @@ static int test_mra_filter(
                return LDAP_INSUFFICIENT_ACCESS;
        }
 
-       if( mra->ma_rule == NULL ) {
+       if( mra->ma_rule == NULL && 
+               mra->ma_desc->ad_type->sat_equality &&
+               mra->ma_desc->ad_type->sat_equality->smr_usage & SLAP_MR_EXT )
+       {
                mra->ma_rule = mra->ma_desc->ad_type->sat_equality;
        }
 
@@ -245,6 +248,10 @@ static int test_mra_filter(
                return LDAP_INAPPROPRIATE_MATCHING;
        }
 
+       /* check to see if the matching rule is appropriate for
+          the syntax of the attribute.  This check will need
+          to be extended to support other kinds of extensible
+          matching rules */
        if( strcmp(mra->ma_rule->smr_syntax->ssyn_oid,
                mra->ma_desc->ad_type->sat_syntax->ssyn_oid) != 0)
        {