#24984 [Bgs]: ldap_rename function don't rename dn
| From: | alban dot medici at fr dot netcentrex dot net | Date: | Fri, 08 Aug 2003 13:59:05 +0000 |
| Subject: | #24984 [Bgs]: ldap_rename function don't rename dn | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355609@lists.php.net to get a copy of this message | ||
ID: 24984
User updated by: alban dot medici at fr dot netcentrex dot net
Reported By: alban dot medici at fr dot netcentrex dot net
Status: Bogus
-Bug Type: LDAP related
+Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.3.1
New Comment:
now it's may be more a documentation Bug ?
Previous Comments:
------------------------------------------------------------------------
[2003-08-08 08:56:11] sniper@php.net
PHP ldap_rename() is just wrapper to ldap_rename_s() and behaves
exactly as that does. Not PHP bug -> bogus.
------------------------------------------------------------------------
[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