For Programmers: Free Programming Magazines  


Home > Archive > LDAP > March 2008 > Re: [rt.cpan.org #34374] incorrect behavior when updating an attribute









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [rt.cpan.org #34374] incorrect behavior when updating an attribute
Graham Barr

2008-03-23, 7:47 pm

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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com