From: Mark W. <mew...@un...> - 2000-07-13 16:32:10
|
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 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 > > > |