Hello

I am working on a overlay (the same as last time with the internal search
question) that produce dynamic values depending on multiple attributes.

The model was slapo-dynlist. I added an on_response method and I was
able to produce everything needed when handling a search request.
That works like a charm.

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.

2) I could steal some ideas from slapo-dds to update entries in
the whole directory on a regular basis. That seems to do a lot of
useless activity, and changes will always lag a bit. For now it
seems to be the best option.

Is there another was of doing it?

-- 
Emmanuel Dreyfus
[email protected]

Reply via email to