Re: Modify only one attribute that has multiple values of the same name
Jerome Cartagena <[email protected]> Thu, 25 Apr 2013 09:07:48 -0700
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <CAP1mMhi=_W109ARCtvm7=hhP1BfSvNOB6ZnEhdVdQmjXB4VU0g@mail.gmail.com> |
There is no such thing as "modify" on a multivalued attribute. As mentioned by Francis, you will have to delete the value you want to change and add a new one in place of it. The real warning is that you never really want to use the changetype: replace on a multi-valued attribute. This is because you will essentially be deleting-all existing value and replacing it with the new value you are adding. Most often than not, this is not what you want to do. -Jerome On Thu, Apr 25, 2013 at 9:04 AM, Francis Swasey <[email protected]>wrote: > On Apr 25, 2013, at 11:57 AM, Brian Gaber <[email protected]> > wrote: > > > I have a LDAP object that contains an attribute SFTrule that can have > multiple values. How do I change just one of the SFTrule attribute values? > > > In pure ldif: > > dn: existing dn > changetype: modify > delete: SFTrule > SFTrule: old value > - > add: SFTrule > SFTrule: new value > - -- ~Jerome