summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b22711d)
raw | patch | inline | side by side (parent: b22711d)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Dec 2010 10:25:13 +0000 (10:25 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Dec 2010 10:25:13 +0000 (10:25 +0000) |
Display a warning message if a workstation is a member of more than
one object group.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20516 594d385d-05f5-0310-b6e9-bd551577e9d8
one object group.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20516 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 58fc74ed2abb701be2b1b1a58d21a7d72ac0cb6c..8d54dde929ed4a3dd3d9c8993e2b29a0b30ff9de 100644 (file)
$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);
+ }
}
}
diff --git a/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po b/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po
index 03b6e9f429045ddac1ea134ad51770173388be02..b18af3ca4c197a794a043211f22e40b6d12a4ede 100644 (file)
msgid "Mouse port"
msgstr "Maus-Anschluß"
+#: admin/systems/goto/class_workstationStartup.inc:94
+#, php-format
+msgid ""
+"This system is member of more than one object group, object group "
+"inheritence will not work!"
+msgstr "Dieses System is Mitglied von mehr als einer Objektgruppe, "
+"Vererbung ist nicht möglich!"
+
#: admin/systems/goto/class_workstationStartup.inc:232
#, php-format
msgid "FAI mirror '%s' is not available - setting to mirror 'auto'!"
diff --git a/trunk/gosa-plugins/goto/locale/messages.po b/trunk/gosa-plugins/goto/locale/messages.po
index 9863a1462eb3a5bc662394dd54249748f96ee875..5f2fb11fe5f5aeedca1de7d577b7054d912ef843 100644 (file)
msgid "Mouse port"
msgstr ""
+#: admin/systems/goto/class_workstationStartup.inc:94
+#, php-format
+msgid ""
+"This system is member of more than one object group, object group "
+"inheritence will not work!"
+msgstr ""
+
#: admin/systems/goto/class_workstationStartup.inc:232
#, php-format
msgid "FAI mirror '%s' is not available - setting to mirror 'auto'!"