Issues

ZF-9564: Can't update attribute that is used as rdn ...

Issue Type: Bug Created: 2010-03-29T06:51:06.000+0000 Last Updated: 2010-05-14T03:58:19.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: S├ębastien Cramatte (scramatte) Assignee: Stefan Gehrig (sgehrig) Tags: - Zend_Ldap

Related issues: Attachments:

Description

Hello,

I can't update attribute that is used as rdn ... I mean for example if

<pre class="highlight">
dn equal to "o=mycompany,c=es"

and object something like :

<pre class="highlight">
array(
 objectClass => array('top', 'organization') 
 o => array('mycompany','my company')
)

you can't update "o" attribute ... it should be possible to add or remove values that are not part of the rdn (concretely everything except "mycompany")

The code below doesn't do nothing (no error neither exception)

<pre class="highlight">
$dn = "o=mycompany,c=es";

$ldap = new Zend_Ldap(...);
$ldap->bind();

$values = array ('o' => array('mycompany','hello','world'));
$ldap->update ($dn, $values);

Comments

Posted by S├ębastien Cramatte (scramatte) on 2010-03-30T04:34:36.000+0000

Looking at the code Zend_Ldap update method clearly strip rdn part. And I believe that should not do it or at least add a parameter to enable/disable attributes stripping.

Under windows I use LDAP client called LDAPAdmin and this one allow to update values of an attribute that is part of the rdn.

Posted by Stefan Gehrig (sgehrig) on 2010-05-14T03:58:16.000+0000

fixed in trunk (r22163) and in 1.10-release branch (r22164)

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts