Hello,

For the life of me I can't figure out how to store a multi-valued attribute via ldap in Active Directory. Here's a code snippet:

Code:
#...connect and bind to ldap...
$msg = $targetLdap->modify( $dn, delete => ['description']);

$msg = $targetLdap->modify( $dn, replace => {description => ['blahblah1', 'blahblah2']});
I've tried it with and without the modify delete line. Here's the results I get:

Code:
00002081: AtrErr: DSID-030F154F, #1:0: 00002081: DSID-030F154F, problem 1006 (ATT_OR_VALUE_EXISTS), data 0, Att d (description)

LDAP_TYPE_OR_VALUE_EXISTS

The request attempted to add an attribute type or value that already exists
I can change the lines above to be :

Code:
$msg = $targetLdap->modify( $dn, delete => ['description']);

$msg = $targetLdap->modify( $dn, replace => {description => ['blahblah1']});
and it works perfectly.

Anyone have experience with this that has overcome this hurtle?