Code

Updated ldap action handling for installable devices
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 13:26:31 +0000 (13:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 13:26:31 +0000 (13:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19718 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index 1d0842f9397fe532faf496c0e5c7eeb25802a722..91539f1092c9d5d2aac463b5dc155b35b349786c 100644 (file)
@@ -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()