From b47ace713ea1309eecf1e2ddd96fa3ca815aa14a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 14 Oct 2008 11:31:41 +0000 Subject: [PATCH] Updated Winstation -Added ACLs, but somehow the renaming and moving of winstations doesn't work. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12687 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/samba/class_winGeneric.inc | 12 +++++++-- .../samba/admin/systems/samba/wingeneric.tpl | 26 ++++++++++++++----- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc index 3a80f52b6..63e20f21b 100644 --- a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc +++ b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc @@ -51,6 +51,7 @@ class wingeneric extends plugin $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses); $this->netConfigDNS->objectclasses=array("ipHost","ieee802Device"); $this->netConfigDNS->MACisMust = FALSE; + $this->netConfigDNS->IPisMust = TRUE; /* Set base */ if ($this->dn == "new"){ @@ -76,6 +77,7 @@ class wingeneric extends plugin $this->netConfigDNS->set_acl_base($base); } + function set_acl_category($cat) { plugin::set_acl_category($cat); @@ -134,7 +136,12 @@ class wingeneric extends plugin /* Fill templating stuff */ $smarty= get_smarty(); - $smarty->assign("bases", $this->config->idepartments); + $smarty->assign("bases" , $this->get_allowed_bases()); + + $tmp = $this->plInfo(); + foreach($tmp['plProvidedAcls'] as $name => $translated){ + $smarty->assign($name."ACL",$this->getacl($name)); + } /* Assign attributes */ foreach ($this->attributes as $attr){ @@ -303,7 +310,8 @@ class wingeneric extends plugin "plCategory" => array("winworkstation" => array("description" => _("Win workstation"), "objectClass" => "gotoWorkstation")), "plProvidedAcls"=> array( - "cn" => _("Workstation name"), + "cn" => _("Name"), + "base" => _("Base"), "description" => _("Description")) )); } diff --git a/gosa-plugins/samba/admin/systems/samba/wingeneric.tpl b/gosa-plugins/samba/admin/systems/samba/wingeneric.tpl index 4363196ba..d7ac659c4 100644 --- a/gosa-plugins/samba/admin/systems/samba/wingeneric.tpl +++ b/gosa-plugins/samba/admin/systems/samba/wingeneric.tpl @@ -4,7 +4,11 @@ - + @@ -12,10 +16,16 @@
{$must} +{render acl=$cnACL} + +{/render} +
 
{$must} - - +{render acl=$baseACL} + +{/render} + +{render acl=$baseACL disable_picture='images/lists/folder_grey.png'} + +{/render} +
@@ -23,7 +33,11 @@ - +
+{render acl=$descriptionACL} + +{/render} +
-- 2.30.2