summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e4c4ad)
raw | patch | inline | side by side (parent: 5e4c4ad)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Mar 2008 06:38:27 +0000 (06:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 31 Mar 2008 06:38:27 +0000 (06:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10073 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
index 875272ca1033e10a5f8250a6a2c39140223f845d..8ee8282bc681cd933890c42619afcacfb0390054 100644 (file)
{
/* Generic terminal attributes */
var $gotoMode= "locked";
+ var $initial_gotoMode= "locked";
var $gotoSyslogServer= "";
var $gotoSyslogServers= array();
var $gotoNtpServer= array();
$this->gotoSyslogServers[$server] = $visible;
}
+ $this->initial_gotoMode = $this->gotoMode;
+
/* Save 'dn' for later referal */
$this->orig_dn= $this->dn;
}
{
/* Call common method to give check the hook */
$message= plugin::check();
-
+
+ /* Only systems with a valid ldap handle can be activated
+ */
+ if($this->gotoMode == "active" && $this->initial_gotoMode != "active"){
+
+ if(isset($this->parent->by_object['workstartup']) && !count($this->parent->by_object['workstartup']->gotoLdapServers)){
+ $message[] = _("In order to activate this system a valid ldap handle is required, please select at least one ldap URI in the workstation startup tab.");
+ }
+ }
+
/* Skip IP & Mac checks if this is a template */
if($this->cn != "wdefault"){
$message= array_merge($message, $this->netConfigDNS->check());