On Mar 23, 2008, at 3:35 PM, Mark Fuller via RT wrote:
I have noticed odd (and incorrect) behavior when updating an attribute
which is not defined as multi-value.

The following example works, but it sets the attribute to the second
value. This is arbitrary. Worse, it shouldn't work because the attribute
is not defined as multi-value.

$ldap_mesg = $ldap_conn->modify($dn,
             changes => [
replace => [ 'attr_name' => ['val_1', 'val2'] ]
                        ]);

However, if you add a third value it will error with code 65. This is
the expected behavior. But, it should do that with two values.

This is using Sun Directory Server v5. I'm running Net::LDAP .34 on Win
XP Pro.

what do you see, in both cases, if you turn on debugging with $ldap_conn->debug(15); just before you call to modify ?

Graham.

Reply via email to