summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68a6110)
raw | patch | inline | side by side (parent: 68a6110)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Oct 2008 11:31:41 +0000 (11:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Oct 2008 11:31:41 +0000 (11:31 +0000) |
-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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12687 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc | patch | blob | history | |
gosa-plugins/samba/admin/systems/samba/wingeneric.tpl | patch | blob | history |
diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc
index 3a80f52b602b6bf0a91e97edbdb6d11178acb217..63e20f21b88e08c301ac994e20d07ccb1872b170 100644 (file)
$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"){
$this->netConfigDNS->set_acl_base($base);
}
+
function set_acl_category($cat)
{
plugin::set_acl_category($cat);
/* 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){
"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 4363196bad2f1044b7c441e6532c27cf76287a20..d7ac659c46faa055520fe5522eacbc268e20c00e 100644 (file)
<table summary="">
<tr>
<td><LABEL for="cn">{t}Machine name{/t}</LABEL>{$must}</td>
- <td><input id="cn" name="cn" size=20 maxlength=60 value="{$cn}"></td>
+ <td>
+{render acl=$cnACL}
+ <input id="cn" name="cn" size=20 maxlength=60 value="{$cn}">
+{/render}
+ </td>
</tr>
<tr>
<td colspan=2> </td>
<tr>
<td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
<td>
- <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}">
- {html_options options=$bases selected=$base_select}
- </select>
- <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
+{render acl=$baseACL}
+ <select id="base" size="1" name="base" title="{t}Choose subtree to place group in{/t}">
+ {html_options options=$bases selected=$base_select}
+ </select>
+{/render}
+
+{render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
+ <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
+{/render}
+ </td>
</tr>
</table>
</td>
<table summary="">
<tr>
<td><LABEL for="description">{t}Description{/t}</LABEL></td>
- <td><input id="description" name="description" size=25 maxlength=80 value="{$description}"></td>
+ <td>
+{render acl=$descriptionACL}
+ <input id="description" name="description" size=25 maxlength=80 value="{$description}">
+{/render}
+ </td>
</tr>
</table>
</td>