RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
} > ); > > This produces a LDAP Error Code: 16 - modify/delete: SFTrule: no such > value > > -Original Message- > From: Brian Gaber [mailto:brian.ga...@ssc-spc.gc.ca] > Sent: Thursday, April 25, 2013 12:33 PM > To: 'Francis Swasey' > Cc: perl-ldap@perl.org >

Re: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Francis Swasey
a LDAP Error Code: 16 - modify/delete: SFTrule: no such value > > -Original Message- > From: Brian Gaber [mailto:brian.ga...@ssc-spc.gc.ca] > Sent: Thursday, April 25, 2013 12:33 PM > To: 'Francis Swasey' > Cc: perl-ldap@perl.org > Subject: RE: Modify only

RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
- From: Brian Gaber [mailto:brian.ga...@ssc-spc.gc.ca] Sent: Thursday, April 25, 2013 12:33 PM To: 'Francis Swasey' Cc: perl-ldap@perl.org Subject: RE: Modify only one attribute that has multiple values of the same name Would this be the correct Net::LDAP syntax to delete the particular multi

RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
r: LDAP Error Code: 21 - member: value #0 invalid per syntax Thanks. -Original Message- From: Francis Swasey [mailto:frank.swa...@uvm.edu] Sent: Thursday, April 25, 2013 12:04 PM To: Brian Gaber Cc: perl-ldap@perl.org Subject: Re: Modify only one attribute that has multiple values of th

Re: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Jerome Cartagena
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 becaus

Re: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Francis Swasey
On Apr 25, 2013, at 11:57 AM, Brian Gaber 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: SFT