Would this be the correct Net::LDAP syntax to delete the particular multivalued 
attribute?

$del_mesg = $ldap->modify( $dn,
   delete => {
      member      => [
        "SFTrule=$value"           # Remove only this member
      ],
   }
);

I ask because I am getting this error:

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 the same name

On Apr 25, 2013, at 11:57 AM, Brian Gaber <brian.ga...@ssc-spc.gc.ca> 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
-

Reply via email to