From:             alban dot medici at fr dot netcentrex dot net
Operating system: linux
PHP version:      4.3.1
PHP Bug Type:     LDAP related
Bug description:  ldap_rename function don't rename dn

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 bug report at http://bugs.php.net/?id=24984&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24984&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24984&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24984&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24984&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24984&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24984&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24984&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24984&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24984&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24984&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24984&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24984&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24984&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24984&r=gnused

Reply via email to