From 6112ca974f8c1e749b583be612849e850df362fd Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 7 Oct 2008 12:04:04 +0000 Subject: [PATCH] Added support for terminals git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12616 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc index fe937fa33..497a81845 100644 --- a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc +++ b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc @@ -38,7 +38,6 @@ class termgroup extends plugin ***************/ plugin::plugin($config, $dn, $parent); - $ldap= $config->get_ldap_link(); $this->is_account = true; @@ -263,6 +262,12 @@ class termgroup extends plugin /* Save to LDAP */ function save() { + if (isset($this->parent->by_name['termstartup'])){ + $this->objectclasses= array("gotoTerminalTemplate"); + } else { + $this->objectclasses= array("gotoWorkstationTemplate"); + } + plugin::save(); /*************** -- 2.30.2