From: Kurt D. Z. <Ku...@Op...> - 2000-07-13 17:43:11
|
At 11:22 AM 7/13/00 -0500, Mark Wilcox wrote: >YOu can pass multiple values in a replace like this: > >my $new_values = ['one','two','three']; > >$ldap->modify($dn,replace => { my_attr => $new_values}); > >mark Note that you should be able to selective delete values and add new values in the same modify operation. A replace may often be used instead, but it does have different semantics. >On Thu, 13 Jul 2000, Arvid Requate wrote: > >> Hi fellow perl-ldapers, >> >> I get the errormessage >> "Unrecognized version number or incorrect PDU structure" >> when doing a a modify with the following code: >> #------------------------------------------------------------------------- >> $result = $ldap->modify($dn, >> changes => [ >> delete => [ $attrib => $attrib_value_orig ], >> add => [ $attrib => $attrib_value ] >> ] >> ); >> #------------------------------------------------------------------------- >> >> while a simple replace like the following works (but I can't use that >> with multivalued attributes, can I?): >> >> #------------------------------------------------------------------------- >> $result = $ldap->modify($dn, replace => { $attrib => $attrib_value } ); >> #------------------------------------------------------------------------- >> >> I'm using perl-ldap-0.19 and openldap 1.2.11 >> >> Happy ldaping >> Arvid >> >> >> |