Skip to content
Snippets Groups Projects
Commit 9eac390e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Return inappropriate matching if the syntaxes don't line up for

extensible matching
parent 815e2ac7
No related branches found
No related tags found
No related merge requests found
......@@ -237,14 +237,15 @@ static int test_mra_filter(
return LDAP_INSUFFICIENT_ACCESS;
}
/* no matching rule was provided, use the attribute's
equality rule if it supports extensible matching. */
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;
}
if( mra->ma_rule == NULL ) {
} else {
return LDAP_INAPPROPRIATE_MATCHING;
}
......@@ -255,7 +256,7 @@ static int test_mra_filter(
if( strcmp(mra->ma_rule->smr_syntax->ssyn_oid,
mra->ma_desc->ad_type->sat_syntax->ssyn_oid) != 0)
{
return LDAP_INVALID_SYNTAX;
return LDAP_INAPPROPRIATE_MATCHING;
}
for(a = attrs_find( e->e_attrs, mra->ma_desc );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment