ID:               24984
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alban dot medici at fr dot netcentrex dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         LDAP related
 Operating System: linux
 PHP Version:      4.3.1
 New Comment:

PHP ldap_rename() is just wrapper to ldap_rename_s() and behaves
exactly as that does. Not PHP bug -> bogus.



Previous Comments:
------------------------------------------------------------------------

[2003-08-08 08:47:02] alban dot medici at fr dot netcentrex dot net

Description:
------------
THE ldap_rename function DOES NOT support renaming dn !
in fact it's much an ldap_move function than ldap_rename instead of C
API !

If you try to rename an object such as :

$objectdn = "uniqueID=MyObject-12".$parentDN;
$newObjectdn = "uniqueID=MyObject-12a";
$parentDN = "ou=MyObjectClass,ou=mycontainer,ou=mycompagny";
the function:
ldap_rename($LDAPds,$objectdn,$newObjectdn,$parentDN,true);
or 
ldap_rename($LDAPds,$objectdn,$newObjectdn,NULL,true);
will NOT work and will not return any error message by 
ldap_error($LDAPds);

Reproduce code:
---------------
//If you try to rename an object such as :

$objectdn = "uniqueID=MyObject-12".$parentDN;
$newObjectdn = "uniqueID=MyObject-12a";
$parentDN = "ou=MyObjectClass,ou=mycontainer,ou=mycompagny";
//the function:
ldap_rename($LDAPds,$objectdn,$newObjectdn,$parentDN,true);
//or 
ldap_rename($LDAPds,$objectdn,$newObjectdn,NULL,true);
//will NOT work and will not return any error message by 
ldap_error($LDAPds);
// return no error


Expected result:
----------------
modification of object dn

Actual result:
--------------
no modification


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24984&edit=1

Reply via email to