How can/should I change one value in a multivalued attribue? The attribute I have in question is mailAlternateAddress of which there can be any number of them attached to a given dn. As in:
dn: uid=testacct,ou=people,o=gsb,dc=uchicago,dc=edu mailAlternateAddress: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] $ldap->modify or $ldap->replace? Or is it a delete the old and add a new? If I do: replace => [ mailAlternateAddress => '[EMAIL PROTECTED]'] That'll replace all the others with that one. Say I want to change the [EMAIL PROTECTED] to [EMAIL PROTECTED] in the above example, I could (but should I): $entry->delete ( 'mailAlternateAddress' => [ '[EMAIL PROTECTED]' ] ); $entry->add ( 'mailAlternateAddress' => [ '[EMAIL PROTECTED]' ] ); Or is there a way to use the replace => an existing attribute/value pair with a new value method? Thanks in advance.