From: Kurt Zeilenga Date: Mon, 11 Mar 2002 16:12:36 +0000 (+0000) Subject: Add a comment to the check which needs extending to support X-Git-Tag: OPENLDAP_REL_ENG_2_MP~353 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=815e2ac71749dca3b5f1255943f9f07509d0afb4;p=openldap Add a comment to the check which needs extending to support new extensible matching rules. --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index 34bc6f1b77..cbd9c1438b 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -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) {