Code

Applied patches from lhm commits
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Dec 2010 12:59:40 +0000 (12:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Dec 2010 12:59:40 +0000 (12:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20568 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index abc84928ff5be3eacb293c4e2304aa2403245230..8fa9eddc727ef19ff860c7fb648c55e2a68d9031 100644 (file)
@@ -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 .= "<li>".$dn."</li>"; 
+                } 
+                msg_dialog::display(_("Warning"), sprintf(_("This system is member of more than one object group, object group inheritence will not work!")."<br><ul>%s</ul>", $str), WARNING_DIALOG); 
+            } 
         }
 
         /* Creating a list of valid Mirrors