Re: Add-if-not-present

2010-05-28 Thread Ludovic Poitou
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 >> constraint

Re: Add-if-not-present

2010-05-27 Thread masarati
> > 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 >>> c

Re: Add-if-not-present

2010-05-27 Thread Matthew Backes
> Do you have a use case for this? I'm implementing add-if-not-present to > ease the implementation of the version number overlay, so I could > implement softdel as well. > > I think all of these could make sense also protocol-wise (including > softadd), but I'm not in the mood right now to start

Re: Add-if-not-present

2010-05-26 Thread masarati
>> Do you have a use case for this? I'm implementing add-if-not-present to >> ease the implementation of the version number overlay, so I could >> implement softdel as well. >> >> I think all of these could make sense also protocol-wise (including >> softadd), but I'm not in the mood right now to

Re: Add-if-not-present

2010-05-26 Thread masarati
>>> Soft Del: The attribute shall contain none of these values, but might >>> have >>> others > >> I'm not sure I understand how SOFTDEL differs from LDAP_MOD_DELETE. Do >> you mean that values listed in SOFTDEL will be deleted if they exist, or >> otherwise ignored? > > Yes; LDAP_MOD_DELETE requi

Re: Add-if-not-present

2010-05-26 Thread Howard Chu
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 t

Re: Add-if-not-present

2010-05-26 Thread Matthew Backes
>> Soft Del: The attribute shall contain none of these values, but might have >> others > I'm not sure I understand how SOFTDEL differs from LDAP_MOD_DELETE. Do > you mean that values listed in SOFTDEL will be deleted if they exist, or > otherwise ignored? Yes; LDAP_MOD_DELETE requires that the

Re: Add-if-not-present

2010-05-26 Thread masarati
>>> Soft Del: The attribute shall contain none of these values, but might >>> have >>> others > >> I'm not sure I understand how SOFTDEL differs from LDAP_MOD_DELETE. Do >> you mean that values listed in SOFTDEL will be deleted if they exist, or >> otherwise ignored? > > Yes; LDAP_MOD_DELETE requi

Re: Add-if-not-present

2010-05-26 Thread masarati
> 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 s

Re: Add-if-not-present

2010-05-26 Thread Ludovic Poitou
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 b

Re: Add-if-not-present

2010-05-26 Thread masarati
>> I need to implement a modify operation whose semantics is "add if not >> present", an add that only takes place if that attribute is not yet >> present in the entry. >> >> I need it as an internal operation, so right now I wouldn't bother >> formalizing it as an extension of the semantics of the

Re: Add-if-not-present

2010-05-26 Thread Matthew Backes
> I need to implement a modify operation whose semantics is "add if not > present", an add that only takes place if that attribute is not yet > present in the entry. > > I need it as an internal operation, so right now I wouldn't bother > formalizing it as an extension of the semantics of the modi

Re: Add-if-not-present

2010-05-25 Thread masarati
> masar...@aero.polimi.it wrote: >> I need to implement a modify operation whose semantics is "add if not >> present", an add that only takes place if that attribute is not yet >> present in the entry. >> >> I need it as an internal operation, so right now I wouldn't bother >> formalizing it as an

Re: Add-if-not-present

2010-05-25 Thread Howard Chu
masar...@aero.polimi.it wrote: I need to implement a modify operation whose semantics is "add if not present", an add that only takes place if that attribute is not yet present in the entry. I need it as an internal operation, so right now I wouldn't bother formalizing it as an extension of the