Code

Allow activation of workstations, if ldap settings are inherited.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 09:39:55 +0000 (09:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 09:39:55 +0000 (09:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10532 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc

index 8cd65f1d7cb85d71163d1ce477cca999e745bdaf..b5207001c491bcf31c53f0771f8ecbf09475b191 100644 (file)
@@ -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{