slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
rs_entry2modifiable( op, rs, on );
e = rs->sr_entry; /* this is now modifiable */
Thanks allot for your opinions Hallvard,
I'm working on applying them!
Since, I was working on the previous version of OpenLDAP (2.4.23).
I needed to update to be able to use the "rs_entry2modifiable()" function.
And, in the new version, I can no longer use :
AttributeName* attName = op->oq_search.rs_attrs;
for( iAtt=0; attName[iAtt].an_name.bv_val != NULL; iAtt++ )
if ( attName[iAtt].an_name.bv_val == dupPp->pp_symbol )
Because when there is a symbol ( _, §, £, ...) before the attribute,
the 'attName[iAtt].an_name.bv_val' gives "1.1" instead of "_attributename"
And I need to recover at least the attribute name to make my overlay work.
Any ideas? Thanks!