[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Add-if-not-present
>
> On May 26, 2010, at 11:10 PM, Howard Chu wrote:
>
>> Ludovic Poitou wrote:
>>> Are you really trying to achieve a MOD_ADD_IF_NOT_PRESENT or don't fail
>> adding an attribute or value if the value is already present ?
>>>
>>> MS AD has a PERMISSIVE MODIFY CONTROL that remove the ADD/DELETE
>>> constraints
>> on the attributes and values, so that adding an attribute that exist
>> will
>> succeed but do nothing and similarly deleting an attribute or value that
>> is
>> not present succeed.
>>
>> Funny you should mention that. We support this control as well.
>
> I've just added support for this control in OpenDS as well.
>
>
>> I didn't get the impression that that was the goal here. It sounded to
>> me like "add this value unless *any* value is present" not "add this
>> value if *this value* is not present"...
>
> Ok, I haven't paid too much attention at the full thread. But, personally
> I would be reluctant to extend the protocol (modification types) to cover
> use cases that are very close to existing solutions.
Well, in fact ttis is not our current intention; I'm only considering this
extension for internal, "middleware" operations. However, permissive
modify control does not deal with the use case that originated this
discussion, and moreover its design is flawed, because it applies to all
modifications, while more granularity would be more useful.
> But hey, OpenLDAP is not my product / project ;-)
well, it's everybody's :)
p.