Code

Applied patches from lhm commits
[gosa.git] / 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