From: cajus Date: Thu, 21 Feb 2008 15:07:45 +0000 (+0000) Subject: Added ldap refresh via gosa-si X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=72b3e1800ce430688a467297503aad6375689f89;p=gosa.git Added ldap refresh via gosa-si git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9030 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc index fdff198df..da458705e 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc @@ -417,6 +417,9 @@ class termstartup extends plugin } } + /* Check if LDAP server has changed */ + $ldap_changed= ($this->attrs['gotoLdapServer'] != $this->saved_attributes['gotoLdapServer']); + /* Strip out 'default' values */ foreach(array("gotoBootKernel") as $value){ if (!isset($this->attrs[$value]) || $this->attrs[$value] == "default"){ @@ -444,6 +447,10 @@ class termstartup extends plugin show_ldap_error($ldap->get_error(), sprintf(_("Saving of system terminal/startup with dn '%s' failed."),$this->dn)); $this->handle_post_events("modify"); + + if ($ldap_changed){ + gosaSupportDaemon::send("gosa_reload_ldap_config", $this->parent->by_object['termgeneric']->netConfigDNS->macAddress); + } } /* Add value to array, check if unique */ diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index c74b37617..555ddd8b4 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -853,6 +853,9 @@ class workstartup extends plugin } } + /* Check if LDAP server has changed */ + $ldap_changed= ($this->attrs['gotoLdapServer'] != $this->saved_attributes['gotoLdapServer']); + if (($this->attrs['gotoBootKernel'] == "default-inherited") || ($this->attrs['gotoBootKernel'] == "%default%")){ $this->attrs['gotoBootKernel']= array(); } @@ -895,6 +898,12 @@ class workstartup extends plugin show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/startup with dn '%s' failed."),$this->dn)); $this->handle_post_events("modify"); + + /* Check if LDAP server has changed */ + if ($ldap_changed){ + gosaSupportDaemon::send("gosa_reload_ldap_config", $this->parent->by_object['workgeneric']->netConfigDNS->macAddress); + } + }