From ff6aba38fa0458d5ef73f5ccf5029de76656456b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Jan 2007 03:59:32 +0000 Subject: [PATCH] A small workstation security update git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5551 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 7 +++++-- plugins/admin/systems/class_workstationStartup.inc | 2 ++ plugins/admin/systems/workstation.tpl | 6 +++--- plugins/admin/systems/workstationStartup.tpl | 7 ++++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index ea542f144..64ba6e3b0 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -245,6 +245,10 @@ class workgeneric extends plugin $query= "fping -q -r 1 -t 500 ".$this->cn; exec ($query, $dummy, $retval); + foreach($this->attributes as $attrs ){ + $smarty->assign($attrs."ACL",chkacl($this->acl,$attrs)); + } + /* Offline */ if ($retval == 0){ $smarty->assign("actions", array("halt" => _("Switch off"), "reboot" => _("Reboot"), @@ -318,14 +322,13 @@ class workgeneric extends plugin $this->netConfigDNS->save_object(); /* Set inherit mode */ - if(isset($_POST['workgeneric_posted'])){ + if(isset($_POST['workgeneric_posted']) && chkacl($this->acl,"gotoNtpServer") == ""){ if(isset($_POST["inheritTimeServer"])){ $this->inheritTimeServer = true; }else{ $this->inheritTimeServer = false; } } - } diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 5d020a17d..cd517e53a 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -693,6 +693,8 @@ class workstartup extends plugin $use = " checked "; }; + $use .= chkacl($this->acl,"gotoLdapServer"); + $display = $server; $SelectBoxLdapServer->AddEntry( diff --git a/plugins/admin/systems/workstation.tpl b/plugins/admin/systems/workstation.tpl index 128da389c..7811521d7 100644 --- a/plugins/admin/systems/workstation.tpl +++ b/plugins/admin/systems/workstation.tpl @@ -9,14 +9,14 @@ {else} {$must} - + {/if} - + @@ -56,7 +56,7 @@ @@ -87,7 +87,7 @@ @@ -118,7 +118,8 @@

{t}Kernel modules (format: name parameters){/t}

- {html_options values=$gotoModules output=$gotoModules} -- 2.30.2
- + - {html_options options=$FAIreleases output=$FAIreleases selected=$FAIrelease}