From 4c90158e6d875719c085834d53adf870bc5f1aa8 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Dec 2010 12:59:40 +0000 Subject: [PATCH] Applied patches from lhm commits git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20568 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/class_workstationStartup.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index abc84928f..8fa9eddc7 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -81,6 +81,19 @@ class workstartup extends plugin $attrs = $ldap->fetch(); $this->o_group_dn = $attrs['dn']; } + + if ($ldap->count() > 1) { + $ogroups = array(); + array_push($ogroups, $attrs['dn']); + while ($attrs = $ldap->fetch()) { + array_push($ogroups, $attrs['dn']); + } + $str = ""; + foreach($ogroups as $dn) { + $str .= "
  • ".$dn."
  • "; + } + msg_dialog::display(_("Warning"), sprintf(_("This system is member of more than one object group, object group inheritence will not work!")."
    ", $str), WARNING_DIALOG); + } } /* Creating a list of valid Mirrors -- 2.30.2