Code

Followup patch for #6056
[gosa.git] / trunk / gosa-plugins / goto / admin / systems / goto / class_workstationStartup.inc
index 58fc74ed2abb701be2b1b1a58d21a7d72ac0cb6c..8d54dde929ed4a3dd3d9c8993e2b29a0b30ff9de 100644 (file)
@@ -81,6 +81,18 @@ class workstartup extends plugin
         $this->member_of_ogroup = TRUE;
         $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);
+        }
       }
     }