instead of re-using other contexts.
/* Create array of LDAPMods for ldap_add() */
attrs = (LDAPMod **)ch_malloc(sizeof(LDAPMod *)*i);
+#ifdef ENABLE_REWRITE
+ dc.ctx = "addAttrDN";
+#endif
for (i=0, a=op->oq_add.rs_e->e_attrs; a; a=a->a_next) {
if ( a->a_desc->ad_type->sat_no_user_mod ) {
continue;
{
struct berval bv;
-#ifdef ENABLE_REWRITE
- dc->ctx="dnAttr";
-#endif
for ( ; a_vals->bv_val != NULL; a_vals++ ) {
ldap_back_dn_massage( dc, a_vals, &bv );
}
if (op->orc_ava->aa_desc->ad_type->sat_syntax == slap_schema.si_syn_distinguishedName ) {
#ifdef ENABLE_REWRITE
- dc.ctx = "dnAttr";
+ dc.ctx = "compareAttrDN";
#endif
ldap_back_dn_massage( &dc, &op->orc_ava->aa_value, &mapped_val );
if (mapped_val.bv_val == NULL || mapped_val.bv_val[0] == '\0') {
goto cleanup;
}
+#ifdef ENABLE_REWRITE
+ dc.ctx = "modifyAttrDN";
+#endif
for (i=0, ml=op->oq_modify.rs_modlist; ml; ml=ml->sml_next) {
if ( ml->sml_desc->ad_type->sat_no_user_mod ) {
continue;
ent->e_private = 0;
attrp = &ent->e_attrs;
+#ifdef ENABLE_REWRITE
+ dc.ctx = "searchAttrDN";
+#endif
while ( ber_scanf( &ber, "{m", &a ) != LBER_ERROR ) {
ldap_back_map(&li->at_map, &a, &mapped, BACKLDAP_REMAP);
if (mapped.bv_val == NULL || mapped.bv_val[0] == '\0')