From: hickert Date: Wed, 15 Dec 2010 13:01:22 +0000 (+0000) Subject: Applied patches from lhm commits X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=411e358554b5788f7805ba4da2bae937dba1103a;p=gosa.git Applied patches from lhm commits git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20570 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc index b37bef3df..fe2496c6b 100644 --- a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc +++ b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc @@ -61,7 +61,7 @@ class termgroup extends plugin if(isset($this->attrs['member'])){ for ($i= 0; $i<$this->attrs['member']['count']; $i++){ $member= $this->attrs['member'][$i]; - array_push($this->member_dn, $member); + array_push($this->member_dn, @LDAP::convert($member)); $ldap->cat($member, array('objectClass', 'macAddress', 'cn')); if ($ldap->success()){ $attrs = $ldap->fetch(); 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