[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Add-if-not-present



> 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.

Thanks.  OpenLDAP supports that control, but

1) it's not the exact semantics I'm looking for, and

2) I don't want to use controls in internal operations, because they may
conflict with the semantics of the original operation (the control could
be already present, or adding the control would affect other parts of the
operation).

p.