From 834fa7f63661507bcb67a96433425a7e0bccbb5e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 16 Sep 2010 13:26:31 +0000 Subject: [PATCH] Updated ldap action handling for installable devices git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19718 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/Device/class_InstallRecipe.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc index 1d0842f93..91539f109 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -45,7 +45,12 @@ class InstallRecipe extends plugin $ldap->cd($this->config->current['BASE']); $ldap->cd($this->dn); $ldap->modify($this->attrs); - echo $ldap->get_error(); + new log("modify","Device/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class())); + }else{ + $this->handle_post_events("modify"); + } } static function plInfo() -- 2.30.2