X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fgoto%2Fclass_workstationStartup.inc;h=59582f76dc5a0c750d1d06fc90a8dfbc7d3fc564;hb=362e2b9a81d3bde32512811ede7525ab017eead5;hp=9571b208bed97e52380b986e4cbac60ec4237ddd;hpb=70d1e6d8c11d8fcb14bf46ffc385ae9aa63c6a6f;p=gosa.git diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 9571b208b..59582f76d 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -1,11 +1,6 @@ "Eins ist toll", "zwei" => "Zwei ist noch besser"); - /* Ldap server list */ var $gotoLdapServers = array(); var $gotoLdapServerList = array(); @@ -898,18 +893,20 @@ class workstartup extends plugin $ldap->modify ($this->attrs); new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); - show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/startup with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class())); + } $this->handle_post_events("modify"); /* Check if LDAP server has changed */ - if ($ldap_changed){ - $events = DaemonEvent::get_event_types(); + if ($ldap_changed && class_available("DaemonEvent")){ + $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT); $o_queue = new gosaSupportDaemon(); - if(isset($events['BY_CLASS']['DaemonEvent_reload_ldap_config'])){ - $evt = $events['BY_CLASS']['DaemonEvent_reload_ldap_config']; + if(isset($events['TRIGGERED']['DaemonEvent_reload_ldap_config'])){ + $evt = $events['TRIGGERED']['DaemonEvent_reload_ldap_config']; $tmp = new $evt['CLASS_NAME']($this->config); $tmp->set_type(TRIGGERED_EVENT); - $tmp->add_targets(array($this->netConfigDNS->macAddress)); + $tmp->add_targets(array($this->parent->by_object['workgeneric']->netConfigDNS->macAddress)); if(!$o_queue->append($tmp)){ msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), $o_queue->get_error()),ERROR_DIALOG);