]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/mra.c
This patch is for a component filter. please refer ITS#3260 for detail
[openldap] / servers / slapd / mra.c
index 1e7a7e63782af0f8d48e586741c2a0938147aa81..1cb4e69f3fd046e63dba38ec2d6ef0a61fcbe3f4 100644 (file)
@@ -223,6 +223,13 @@ get_mra(
                return rc;
        }
 
+#ifdef LDAP_COMP_MATCH
+       /* Matching Rule for Component Matching */
+       Debug( LDAP_DEBUG_FILTER, "matchingrule %s\n",ma.ma_rule->smr_mrule.mr_oid,0,0);
+       if( ma.ma_rule && ma.ma_rule->smr_usage & SLAP_MR_COMPONENT )
+               rc = get_comp_filter( op, &ma.ma_value, &ma.cf, text );
+               if ( rc != LDAP_SUCCESS ) return rc;
+#endif
        length = sizeof(ma);
        /* Append rule_text to end of struct */
        if (rule_text.bv_val) length += rule_text.bv_len + 1;