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] [EMAIL PROTECTED]

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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to