ldap_rename
Don't work :-(((
I have some problem with this function.
Script $res = spliti(",",$dn); $res[0] = "ou=".$input['ou']; $newrdn = implode(",",$res); unset($res[0]); $parentdn = implode(",",$res); echo "<pre>"; var_dump($dn); var_dump($newrdn); var_dump($parentdn); echo "</pre>"; ldap_rename($this->ldap,$dn,$newrdn,$parentdn,false);
Where $dn - current dn input['ou'] - new value for ou
Output
string(83) "ou=WinAdmin,ou=otdel,ou=nazvanie,ou=asdf,ou=dsfsdf,ou=builtin,ou=AV,o=fcg,dc=bunker"
string(86) "ou=WinAdmin234,ou=otdel,ou=nazvanie,ou=asdf,ou=dsfsdf,ou=builtin,ou=AV,o=fcg,dc=bunker"
string(71) "ou=otdel,ou=nazvanie,ou=asdf,ou=dsfsdf,ou=builtin,ou=AV,o=fcg,dc=bunker"
Invalid DN syntax
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php