mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
Add a comment to the check which needs extending to support
new extensible matching rules.
This commit is contained in:
parent
5ea0bf2f9b
commit
815e2ac717
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue