From 65fbd139704187af815e5ffbd647670046147e57 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 28 Jan 2008 10:46:39 +0000 Subject: [PATCH] Terminal server update -Removed fontpath dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8617 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index bf5d0ab75..2b97322a6 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -494,16 +494,18 @@ class config { /* Load Terminalservers */ $ldap->cd ($this->current['BASE']); - $ldap->search ("(objectClass=goTerminalServer)"); + $ldap->search ("(objectClass=goTerminalServer)",array("cn","gotoSessionType")); $this->data['SERVERS']['TERMINAL']= array(); $this->data['SERVERS']['TERMINAL'][]= "default"; + $this->data['SERVERS']['TERMINAL_SESSION_TYPES'] = array(); + - $this->data['SERVERS']['FONT']= array(); - $this->data['SERVERS']['FONT'][]= "default"; while ($attrs= $ldap->fetch()){ $this->data['SERVERS']['TERMINAL'][]= $attrs["cn"][0]; - for ($i= 0; $i<$attrs["goFontPath"]["count"]; $i++){ - $this->data['SERVERS']['FONT'][]= $attrs["goFontPath"][$i]; + if(isset( $attrs["gotoSessionType"]['count'])){ + for($i =0 ; $i < $attrs["gotoSessionType"]['count'] ; $i++){ + $this->data['SERVERS']['TERMINAL_SESSION_TYPES'][$attrs["cn"][0]][] = $attrs["gotoSessionType"][$i]; + } } } -- 2.30.2