1 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
2 <tr>
3 <td style="width:50%; vertical-align:top;">
4 <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Generic{/t}</h2>
5 <table summary="">
6 <tr>
7 <td><label for="homeDirectory">{t}Home directory{/t}</label>{$must}</td>
8 <td>
9 {render acl=$homeDirectoryACL checkbox=$multiple_support checked=$use_homeDirectory}
10 <input type='text' id="homeDirectory" name="homeDirectory" size=40 maxlength=120 value="{$homeDirectory}">
11 {/render}
12 </td>
13 </tr>
14 <tr>
15 <td><label for="loginShell">{t}Shell{/t}</label></td>
16 <td>
17 {render acl=$loginShellACL checkbox=$multiple_support checked=$use_loginShell}
18 <select id="loginShell" size="1" name="loginShell">
19 {html_options values=$shells output=$shells selected=$loginShell}
20 </select>
21 {/render}
22 </td>
23 </tr>
24 <tr>
25 <td><label for="primaryGroup">{t}Primary group{/t}</label></td>
26 <td>
27 {render acl=$gidNumberACL checkbox=$multiple_support checked=$use_primaryGroup}
28 <select id="primaryGroup" size="1" name="primaryGroup">
29 {html_options options=$secondaryGroups selected=$primaryGroup}
30 </select>
31 {/render}
32 </td>
33 </tr>
34 {if !$multiple_support}
35 <tr>
36 <td>{t}Status{/t}</td>
37 <td>{$status}</td>
38 </tr>
39 {if $gotoLastSystemLogin}
40 <tr>
41 <td>{t}Last logon{/t}</td>
42 <td>{$gotoLastSystemLogin}</td>
43 </tr>
44 {/if}
45 {/if}
46 </table>
48 {if !$multiple_support}
50 <table summary="">
51 <tr>
52 <td>
53 {render acl=$force_idsACL}
54 <input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids}
55 onclick="{$onClickIDS}">
56 {/render}
57 </td>
58 <td>
59 <label for="force_ids">{t}Force UID/GID{/t}</label>
60 </td>
61 <td style="width:20px;"></td>
62 <td>
63 <label for="uidNumber">{t}UID{/t}</label>
64 </td>
65 <td>
66 {render acl=$uidNumberACL}
67 <input type='text' id="uidNumber" name="uidNumber" size=9 maxlength=9 {$forceMode} value="{$uidNumber}">
68 {/render}
69 </td>
70 </tr>
71 <tr>
72 <td colspan="3"></td>
73 <td>
74 <label for="gidNumber">{t}GID{/t}</label>
75 </td>
76 <td>
77 {render acl=$gidNumberACL}
78 <input type='text' id="gidNumber" name="gidNumber" size=9 maxlength=9 {$forceMode} value="{$gidNumber}">
79 {/render}
80 </td>
81 </tr>
82 </table>
83 {/if}
84 </td>
85 <td style="border-left:1px solid #A0A0A0">
86
87 </td>
88 <td style="vertical-align:top;">
89 <h2><img alt="" class="center" align="middle" src="plugins/posix/images/members.png" /> {t}Group membership{/t}</h2>
90 {if $groups eq "too_many_for_nfs"}
91 <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
92 <br>
93 {/if}
94 {render acl=$groupMembershipACL}
95 {$groupMembershipList}
96 {/render}
97 {render acl=$groupMembershipACL}
98 <input type=submit value="{msgPool type=addButton}" name="edit_groupmembership" >
99 {/render}
100 <!--{render acl=$groupMembershipACL}
101 <input type=submit value="{msgPool type=delButton}" name="delete_groupmembership" >
102 {/render}-->
103 </td>
104 </tr>
105 </table>
107 <p class="seperator"> </p>
109 <table summary="" style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
110 <tr>
111 <td style='width:50%;vertical-align:top'>
112 {if $sshPublicKey == 1}
113 {render acl=$sshPublicKeyACL}
114 <h2><img alt="" class="center" align="middle" src="images/lists/key.png" /> {t}SSH keys{/t}</h2>
115 <input type=submit value="{t}Edit public ssh keys...{/t}" name="edit_sshpublickey">
116 <div style='border-bottom:1px solid #A0A0A0;height:8px'></div>
117 {/render}
118 {/if}
119 <h2><img alt="" class="center" align="middle" src="plugins/posix/images/terminal_small.png" /> {t}Account{/t}</h2>
120 {include file="$pwmode.tpl"}
121 </td>
122 <td style="border-left:1px solid #A0A0A0">
123
124 </td>
125 <td style="vertical-align:top;">
126 <h2><img alt="" class="center" align="middle" src="images/lists/locked.png" /> {t}System trust{/t}</h2>
127 {if !$multiple_support}
128 {t}Trust mode{/t}
129 {render acl=$trustmodeACL}
130 <select name="trustmode" id="trustmode" size=1
131 onChange="changeSelectState('trustmode', 'wslist');
132 changeSelectState('trustmode', 'add_ws');
133 changeSelectState('trustmode', 'del_ws');">
134 {html_options options=$trustmodes selected=$trustmode}
135 </select>
136 {/render}
137 {render acl=$trustmodeACL}
138 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
139 {html_options values=$workstations output=$workstations}
140 {if $emptyArrAccess}
141 <option disabled> </option>
142 {/if}
143 </select>
144 {/render}
145 <br>
146 {render acl=$trustmodeACL}
147 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
148 {/render}
149 {render acl=$trustmodeACL}
150 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
151 {/render}
153 {else}
154 <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
155 class="center" onClick="GOsa_toggle('div_trustmode');">
156 {t}Trust mode{/t}
157 <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
158 {render acl=$trustmodeACL}
159 <select name="trustmode" id="trustmode" size=1
160 onChange="changeSelectState('trustmode', 'wslist');
161 changeSelectState('trustmode', 'add_ws');
162 changeSelectState('trustmode', 'del_ws');">
163 {html_options options=$trustmodes selected=$trustmode}
164 </select>
165 {/render}
166 {render acl=$trustmodeACL}
167 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
168 {html_options values=$workstations output=$workstations}
169 {if $emptyArrAccess}
170 <option disabled> </option>
171 {/if}
172 </select>
173 {/render}
174 <br>
175 {render acl=$trustmodeACL}
176 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
177 {/render}
178 {render acl=$trustmodeACL}
179 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
180 {/render}
181 </div>
182 {/if}
183 </td>
184 </tr>
185 </table>
186 {if $multiple_support}
187 <input type="hidden" name="posix_mulitple_edit" value="1">
188 {/if}
190 <input type="hidden" name="posixTab" value="posixTab">
192 <!-- Place cursor -->
193 <script language="JavaScript" type="text/javascript">
194 <!-- // First input field on page
195 focus_field('homeDirectory');
196 -->
197 </script>