From cf7eac04981ce4c73193761e074f5f56e095826d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Apr 2008 10:09:02 +0000 Subject: [PATCH] Updated plugin && ldap class - import_complete_ldif wasn't working anymore git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10276 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 2 +- gosa-core/include/class_plugin.inc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index f98432470..bfd429c52 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -861,7 +861,7 @@ class LDAP{ if JustMofify id false the destination dn will be overwritten by the new ldif. */ - function import_complete_ldif($srp, $str_attr,&$error,$JustModify,$DeleteOldEntries) + function import_complete_ldif($srp, $str_attr,$error,$JustModify,$DeleteOldEntries) { if($this->reconnect) $this->connect(); diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 50f666f81..047b21898 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -1348,6 +1348,7 @@ class plugin $data = gzuncompress($ldap_to->get_attribute($dn,'gosaSnapshotData')); /* Import the given data */ + $err = ""; $ldap->import_complete_ldif($data,$err,false,false); if (!$ldap->success()){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, "", get_class())); -- 2.30.2