summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e1b17c8)
raw | patch | inline | side by side (parent: e1b17c8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 09:15:32 +0000 (09:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 09:15:32 +0000 (09:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4253 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/generic.tpl | patch | blob | history | |
plugins/personal/posix/posix_shadow.tpl | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 5fe42c89e0d814d668e5bd2a3cbb8bfa9fe25eb2..c56e3050296dee34218d90d57377e493364220fa 100644 (file)
/* remove already assigned groups */
$glist= array();
foreach ($this->grouplist as $key => $value){
- if (!isset($this->groupMembership[$key])){
+ if (!isset($this->groupMembership[$key]) && obj_is_writable($key,"group","memberUid")){
$glist[$key]= $value;
}
}
index 83b3083bc199b4006aebf0770ba132175c8fd30b..54d00438f66790fdcf943471a25407d8346688c4 100644 (file)
<tr>
<td><label for="homeDirectory">{t}Home directory{/t}</label>{$must}</td>
<td>
+ {render acl=$homeDirectoryACL}
<input id="homeDirectory" name="homeDirectory" size=40 maxlength=120 {$homeDirectoryACL} value="{$homeDirectory}">
+ {/render}
</td>
</tr>
<tr>
<td><label for="loginShell">{t}Shell{/t}</label></td>
<td>
+ {render acl=$loginShellACL}
<select id="loginShell" size="1" name="loginShell" {$loginShellACL}>
{html_options values=$shells output=$shells selected=$loginShell}
</select>
+ {/render}
</td>
</tr>
<tr>
<td><label for="">{t}Primary group{/t}</label></td>
<td>
+ {render acl=$gidNumberACL}
<select id="primaryGroup" size="1" name="primaryGroup" {$gidNumberACL}>
{html_options options=$secondaryGroups selected=$primaryGroup}
</select>
+ {/render}
</td>
</tr>
<tr>
<table summary="">
<tr>
<td>
+ {render acl=$gidNumberACL}
<input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids} {$force_idsACL} onclick="changeState('uidNumber'); changeState('gidNumber');">
+ {/render}
</td>
<td>
<label for="force_ids">{t}Force UID/GID{/t}</label>
<label for="uidNumber">{t}UID{/t}</label>
</td>
<td>
+ {render acl=$gidNumberACL}
<input id="uidNumber" name="uidNumber" size=5 maxlength=5 {$forceMode} {$uidNumberACL} value="{$uidNumber}">
+ {/render}
</td>
</tr>
<tr>
<label for="gidNumber">{t}GID{/t}</label>
</td>
<td>
+ {render acl=$gidNumberACL}
<input id="gidNumber" name="gidNumber" size=5 maxlength=5 {$forceMode} {$gidNumberACL} value="{$gidNumber}">
+ {/render}
</td>
</tr>
</table>
<b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
<br>
{/if}
+ {render acl=$gidNumberACL}
<select style="width:100%; height:130px;" name="group_list[]" size=16 multiple {$groupMembershipACL}>
{html_options options=$groupMembership}
</select>
+ {/render}
<br>
+ {render acl=$gidNumberACL}
<input type=submit value="{t}Add{/t}" name="edit_groupmembership" {$groupMembershipACL}>
+ {/render}
+ {render acl=$gidNumberACL}
<input type=submit value="{t}Delete{/t}" name="delete_groupmembership" {$groupMembershipACL}>
+ {/render}
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;">
<h2><img alt="" class="center" align="middle" src="images/closedlock.png" /> {t}System trust{/t}</h2>
- {t}Trust mode{/t} <select name="trustmode" id="trustmode" size=1 onchange="changeSelectState('trustmode', 'wslist'); changeSelectState('trustmode', 'add_ws'); changeSelectState('trustmode', 'del_ws');" {$trustmodeACL}>
+ {t}Trust mode{/t}
+ {render acl=$gidNumberACL}
+ <select name="trustmode" id="trustmode" size=1 onchange="changeSelectState('trustmode', 'wslist'); changeSelectState('trustmode', 'add_ws'); changeSelectState('trustmode', 'del_ws');" {$trustmodeACL}>
{html_options options=$trustmodes selected=$trustmode}
</select>
+ {/render}
+ {render acl=$gidNumberACL}
<select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trustmodeACL} {$trusthide}>
{html_options values=$workstations output=$workstations}
{if $emptyArrAccess}
<option disabled> </option>
{/if}
</select>
+ {/render}
<br>
+ {render acl=$gidNumberACL}
<input type="submit" id="add_ws" value="{t}Add{/t}" name="add_ws"
{$trustmodeACL} {$trusthide}>
+ {/render}
+ {render acl=$gidNumberACL}
<input type="submit" id="del_ws" value="{t}Delete{/t}" name="delete_ws"
{$trustmodeACL} {$trusthide}>
+ {/render}
</td>
</tr>
</table>
index 2cf44ea829831f808ec2d11f71abdb07cef2d92e..c489d2116c1fdd9840d983240d0a22b3eac53fef 100644 (file)
<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
<tr>
<td style="width:50%; vertical-align:top;">
- <input type=checkbox name="must_change_password" value="1" {$must_change_password} {$must_change_passwordACL}>
+
+<!-- must_change_password -->
+{render acl=$must_change_passwordACL}
+ <input type=checkbox name="must_change_password" value="1" {$must_change_password}>
+{/render}
{t}User must change password on first login{/t}
<br>
- <input type=checkbox name="use_shadowMin" value="1" {$use_shadowMin} {$shadowMinACL}>
+
+<!-- shadowMin -->
+{render acl=$shadowMinACL}
+ <input type=checkbox name="use_shadowMin" value="1" {$use_shadowMin}>
+{/render}
+{render acl=$shadowMinACL}
{$shadowmins}
+{/render}
<br>
- <input type=checkbox name="use_shadowMax" value="1" {$use_shadowMax} {$shadowMaxACL}>
+
+<!-- use_shadowMax -->
+{render acl=$shadowMaxACL}
+ <input type=checkbox name="use_shadowMax" value="1" {$use_shadowMax}>
+{/render}
+{render acl=$shadowMaxACL}
{$shadowmaxs}
+{/render}
<br>
- <input type=checkbox name="use_shadowExpire" value="1" {$use_shadowExpire} {$shadowExpireACL}>
+
+<!-- use_shadowExpire -->
+{render acl=$shadowExpireACL}
+ <input type=checkbox name="use_shadowExpire" value="1" {$use_shadowExpire}>
+{/render}
{t}Password expires on{/t}
- <select name=day onChange="createResult(this.form,this.form.shadowExpire);" {$shadowExpireACL}>
+{render acl=$shadowExpireACL}
+ <select name=day onChange="createResult(this.form,this.form.shadowExpire);">
{html_options values=$days output=$days selected=$day}
</select>
- <select name=month onChange="populate(this.form,this.form.shadowExpire);" {$shadowExpireACL}>
+{/render}
+{render acl=$shadowExpireACL}
+ <select name=month onChange="populate(this.form,this.form.shadowExpire);">
{html_options options=$months selected=$month}
</select>
- <select name=year onChange="populate(this.form,this.form.shadowExpire);" {$shadowExpireACL}>
+{/render}
+{render acl=$shadowExpireACL}
+ <select name=year onChange="populate(this.form,this.form.shadowExpire);">
{html_options values=$years output=$years selected=$year}
</select>
+{/render}
+{render acl=$must_change_passwordACL}
<input type="hidden" name="shadowExpire" value="{$shadowExpire}">
+{/render}
<br>
- <input type=checkbox name="use_shadowInactive" value="1" {$use_shadowInactive} {$shadowInactiveACL}>
+
+<!-- shadowInactive -->
+{render acl=$shadowInactiveACL}
+ <input type=checkbox name="use_shadowInactive" value="1" {$use_shadowInactive}>
+{/render}
+{render acl=$shadowInactiveACL}
{$shadowinactives}
+{/render}
<br>
- <input type=checkbox name="use_shadowWarning" value="1" {$use_shadowWarning} {$shadowWarningACL}>
+
+<!-- use_shadowWarning -->
+{render acl=$shadowWarningACL}
+ <input type=checkbox name="use_shadowWarning" value="1" {$use_shadowWarning}>
+{/render}
+{render acl=$shadowWarningACL}
{$shadowwarnings}
+{/render}
</td>
</tr>
</table>