From 2195638530f7a261dfa848921203adc0fe41f0e4 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Jul 2006 11:13:39 +0000 Subject: [PATCH] Some Workstation acls (not all) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4159 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_termDNS.inc | 13 ++++++++ .../systems/class_workstationGeneric.inc | 32 +++++++++++++++++++ .../systems/class_workstationService.inc | 27 ++++++++++++++++ .../systems/class_workstationStartup.inc | 17 ++++++++++ 4 files changed, 89 insertions(+) diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index ad36377c5..3c40b6bf9 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -501,6 +501,19 @@ class termDNS extends plugin $str.=""; return($str); } + + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plDescription" => _("DNS"), + "plSelfModify" => FALSE, + "plDepends" => array("objectClass" => array("gotoWorkstation")), + + "ipHostNumber" => _("IP address"), + "macAddress" => _("MAC address"))); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index 976f42105..f689de9e0 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -456,6 +456,38 @@ class workgeneric extends plugin show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/generic with dn '%s' failed."),$this->dn)); } + + /* Return plugin informations for acl handling + #FIXME FAIscript seams to ununsed within this class... */ + function plInfo() + { + return (array( + "plDescription" => _("Workstation"), + "plSelfModify" => FALSE, + "plDepends" => array("objectClass" => "gotoWorkstation","description"=>_("Workstation")), + + "cn" => _("Workstation name"), + + "gotoMode" => _("Goto mode"), + "gotoSyslogServer" => _("Syslog server"), + "gotoNtpServer" => _("Ntp server"), + "FAIstate" => _("Action flag"), + +// "gotoFloppyEnable" => _(""), +// "gotoCdromEnable" => _(""), +// "gotoSndModule" => _(""), + +// "ghCpuType" => _(""), +// "ghMemSize" => _(""), +// "ghUsbSupport" => _(""), +// "ghGfxAdapter" => _(""), +// "ghSoundAdapter" => _(""), +// "gotoLastUser" => _(""), +// "l" => _(""), +// "FAIscript" => _("FAI status ") + )); + } + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index 6225cbe33..2293bc4fb 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -422,6 +422,33 @@ class workservice extends plugin $this->handle_post_events("modify"); } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plDescription" => _("Services"), + "plSelfModify" => FALSE, + "plDepends" => array("objectClass" => "gotoWorkstation"), + + "gotoXMonitor" => _("Monitor"), + "gotoXDriver" => _("Driver"), + "gotoXResolution" => _("Resolution"), + "gotoXColordepth" => _("Color depth"), + "gotoXHsync" => _("H sync"), + "gotoXVsync" => _("V sync"), + + "gotoScannerEnable" => _("Enable scanner"), + "gotoScannerClients" => _("Scanner client"), + "gotoScannerBackend" => _("Scanner backend"), + + "gotoXKbModel" => _("Keyboard model"), + "gotoXKbLayout" => _("Keyboard layout"), + "gotoXKbVariant" => _("Keyboard Variant"), + "gotoXMouseType" => _("Mouse type"), + "gotoXMouseport" => _("Mouse port"), + "goFonHardware" => _("Telefon Hardware"))); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index f783bfa9b..33088b267 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -1074,6 +1074,23 @@ class workstartup extends plugin return($ret); } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plDescription" => _("Startup"), + "plSelfModify" => FALSE, + "plDepends" => array("objectClass" => "gotoWorkstation"), + "gotoLdapServer" => _("Ldap server"), + "gotoBootKernel" => _("Boot kernel"), + "gotoKernelParameters" => _("Kernel parameter"), + "FAIclass" => _("FAI classes"), + "FAIstatus" => _("FAI status flag"), + "gotoShare" => _("Shares"), + "FAIdebianMirror" => _("Debian mirror"), + "FAIrelease" => _("Debian release"))); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2