#24984 [Opn->Bgs]: ldap_rename function don't rename dn

From: Date: Fri, 08 Aug 2003 13:56:12 +0000
Subject: #24984 [Opn->Bgs]: ldap_rename function don't rename dn
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45584@lists.php.net to get a copy of this message
ID: 24984 Updated by: sniper@php.net 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

« previous php.bugs (#45584) next »