From: hickert Date: Wed, 30 Jan 2008 13:32:00 +0000 (+0000) Subject: Terminal service. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad5897ab7fd57634425265c2d2843b6cabe09b1f;p=gosa.git Terminal service. -Skip checking xdmcp server settings when inherit is selected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8662 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc index 714c65131..77f82df88 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc @@ -504,15 +504,17 @@ class termservice extends plugin /* Call common method to give check the hook */ $message= plugin::check(); - $xdmcp_types = $this->config->data['SERVERS']['TERMINAL_SESSION_TYPES']; - $available_servers = array(); - if(isset($xdmcp_types[strtoupper($this->gotoXMethod)])){ - $available_servers = $xdmcp_types[strtoupper($this->gotoXMethod)]; - } - foreach($this->selected_xdmcp_servers as $server){ - if(!in_array($server,$available_servers)){ - $message[] = _("Remote desktop settings contains servers that do not support the selected connection method."); - break; + if($this->gotoXMethod != "default"){ + $xdmcp_types = $this->config->data['SERVERS']['TERMINAL_SESSION_TYPES']; + $available_servers = array(); + if(isset($xdmcp_types[strtoupper($this->gotoXMethod)])){ + $available_servers = $xdmcp_types[strtoupper($this->gotoXMethod)]; + } + foreach($this->selected_xdmcp_servers as $server){ + if(!in_array($server,$available_servers)){ + $message[] = _("Remote desktop settings contains servers that do not support the selected connection method."); + break; + } } }