From d1bac8afab53a09ff47f6186ca253769580212a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 30 Jun 2008 09:42:02 +0000 Subject: [PATCH] Updated ldap->rename(). -Added create missing trees, to prevent error messages when cut and paste objects. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11475 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 74b530e0a..e2d6bd6c2 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -898,6 +898,9 @@ class plugin /* Try to move the source entry to the destination position */ $ldap = $this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->create_missing_trees(preg_replace("/^[^,]+,/","",$dst_dn)); + if (!$ldap->rename_dn($src_dn,$dst_dn)){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $src_dn, "", get_class())); return(FALSE); -- 2.30.2