From: hickert Date: Thu, 17 Apr 2008 09:39:55 +0000 (+0000) Subject: Allow activation of workstations, if ldap settings are inherited. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e399f5335e4d8d0888bfd2b41cd9f149f6992ba1;p=gosa.git Allow activation of workstations, if ldap settings are inherited. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10532 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 8cd65f1d7..b5207001c 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -467,7 +467,10 @@ class workgeneric extends plugin */ if($this->gotoMode == "active" && $this->initial_gotoMode != "active"){ - if(isset($this->parent->by_object['workstartup']) && !count($this->parent->by_object['workstartup']->gotoLdapServers)){ + if(isset($this->parent->by_object['workstartup']) && + !count($this->parent->by_object['workstartup']->gotoLdapServers) && + !$this->parent->by_object['workstartup']->gotoLdap_inherit){ + $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."); } }else{