On Mon, Dec 22, 2025 at 03:05:35PM +0000, Emmanuel Dreyfus wrote: > But now I would like to use the generated values in a filter when > searching. In some cases, I can modify the filter on the fly in > bi_op_search so that it works, but that is not always possible. > > I thought of two alterantives: > > 1) In supann_op_add and supann_op_modify, perform an internal modify > operation, so that the generated values are actualy added to the > entry. But There is a problem: I exit that two methods without > knowing if the add or modify operation succeded or not. The dynamic > values should not be added if the add/modify operation failed.
Replying to myself: When bi_op_modify or bi_op_add detect that the change would require a subsequent attribute addition to the entry, the modification is queued in the overlay private structure. In on_response, if ((rs->sr_tag == LDAP_RES_MODIFY || rs->sr_tag == LDAP_RES_ADD) && rs->sr_err == LDAP_SUCCESS) then the modification is performed. -- Emmanuel Dreyfus [email protected]
