1 <table style='width:100%; ' summary="{t}Samba configuration{/t}">
4 <!-- Headline container -->
5 <tr>
6 <td style='width:50%; ' colspan="2">
8 <h3>{t}Generic{/t}</h3>
9 </td>
10 </tr>
11 <tr>
12 <td>
14 <table summary="{t}Path configuration{/t}">
15 <tr>
16 <td><label for="sambaHomePath">{t}Home directory{/t}</label></td>
17 <td>
18 {render acl=$sambaHomePathACL checkbox=$multiple_support checked=$use_sambaHomePath}
19 <input type='text' id="sambaHomePath" name="sambaHomePath" size=30 maxlength=60 value="{$sambaHomePath}">
20 {/render}
21 {render acl=$sambaHomeDriveACL checkbox=$multiple_support checked=$use_sambaHomeDrive}
22 <select size="1" name="sambaHomeDrive">
23 {html_options values=$drives output=$drives selected=$sambaHomeDrive}
24 </select>
25 {/render}
26 </td>
27 </tr>
28 <tr>
29 <td><label for="sambaDomainName">{t}Domain{/t}</label></td>
30 <td>
31 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
32 <select id="sambaDomainName" size="1" name="sambaDomainName"
33 onChange="document.mainform.submit();">
34 {html_options values=$domains output=$domains selected=$sambaDomainName}
35 </select>
36 {/render}
37 {render acl=$sambaDomainNameACL checkbox=$multiple_support checked=$use_sambaDomainName}
38 <button type='submit' name='display_information'>{t}Show information{/t}</button>
40 {/render}
41 </td>
42 </tr>
43 </table>
44 </td>
45 <td class='left-border'>
47
48 </td>
49 <td>
51 <table summary="{t}Profile and script path settings{/t}">
52 <tr>
53 <td><label for="">{t}Script path{/t}</label></td>
54 <td>
55 {render acl=$sambaLogonScriptACL checkbox=$multiple_support checked=$use_sambaLogonScript}
56 <input type='text' id="sambaLogonScript" name="sambaLogonScript" size=35 maxlength=60 value="{$sambaLogonScript}">
57 {/render}
58 </td>
59 </tr>
60 <tr>
61 <td><label for="">{t}Profile path{/t}</label></td>
62 <td>
63 {render acl=$sambaProfilePathACL checkbox=$multiple_support checked=$use_sambaProfilePath}
64 <input type='text' class="center" id="sambaProfilePath" name="sambaProfilePath" size=35 maxlength=60 value="{$sambaProfilePath}">
65 {/render}
66 </td>
67 </tr>
68 </table>
69 </td>
70 </tr>
71 </table>
73 <hr>
75 <h3>{t}Terminal Server{/t}</h3>
77 <table style='width:100%; ' summary="{t}Terminal server settings{/t}">
78 <tr>
79 <td style='width:50%'>
82 {if $multiple_support}
83 <input class="center" type=checkbox name="use_tslogin" id="use_tslogin" value="1"
84 {if $use_tslogin} checked {/if}
85 onClick="changeState('tslogin')">
86 <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
87 {if !$use_tslogin} disabled {/if}>
88 {else}
89 {render acl=$AllowLoginOnTerminalServerACL}
90 <input class="center" type=checkbox name="tslogin" id="tslogin" value="1" {$tslogin}
91 onclick="
92 changeState('CtxWFHomeDir');
93 changeState('CtxWFHomeDirDrive');
94 changeState('CtxWFProfilePath');
95 changeState('inherit');
96 changeTripleSelectState_2nd_neg('tslogin','inherit','CtxInitialProgram');
97 changeTripleSelectState_2nd_neg('tslogin','inherit','CtxWorkDirectory');
98 changeState('CtxMaxConnectionTimeF');
99 changeState('CtxMaxDisconnectionTimeF');
100 changeState('CtxMaxIdleTimeF');
101 changeTripleSelectState('tslogin','CtxMaxConnectionTimeF','CtxMaxConnectionTime');
102 changeTripleSelectState('tslogin','CtxMaxDisconnectionTimeF','CtxMaxDisconnectionTime');
103 changeTripleSelectState('tslogin','CtxMaxIdleTimeF','CtxMaxIdleTime');
104 changeState('connectclientdrives');
105 changeState('connectclientprinters');
106 changeState('defaultprinter');
107 changeState('shadow');
108 changeState('brokenconn');
109 changeState('reconn');
110 ">
111 {/render}
112 {/if}
113 <i>{t}Allow login on terminal server{/t}</i>
114 <table summary="{t}Terminal server connection settings{/t}">
115 <tr>
116 <td><label for="CtxWFHomeDir">{t}Home directory{/t}</label></td>
117 <td>
118 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFHomeDir}
119 <input type='text' id="CtxWFHomeDir" name="CtxWFHomeDir" size=30 maxlength=60 value="{$CtxWFHomeDir}" {$tsloginstate}>
120 {/render}
121 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFHomeDirDrive}
122 <select size="1" id="CtxWFHomeDirDrive" name="CtxWFHomeDirDrive" {$tsloginstate}>
123 {html_options values=$drives output=$drives selected=$CtxWFHomeDirDrive}
124 </select>
125 {/render}
126 </td>
127 </tr>
128 <tr>
129 <td><label for="CtxWFProfilePath">{t}Profile path{/t}</label></td>
130 <td>
131 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFProfilePath}
132 <input type='text' id="CtxWFProfilePath" name="CtxWFProfilePath" size=35 maxlength=60 value="{$CtxWFProfilePath}" {$tsloginstate}>
133 {/render}
134 </td>
135 </tr>
136 </table>
137 </td>
138 <td class='left-border'>
140
141 </td>
142 <td>
144 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_inherit}
145 <input class="center" type=checkbox id="inherit" name="inherit" {if $inheritstate} checked {/if}
146 {$tsloginstate}
147 onClick="changeState('CtxInitialProgram');
148 changeState('CtxWorkDirectory');"
150 >
151 {/render}
152 <i>{t}Inherit client configuration{/t}</i>
153 <table summary="{t}Client configuration{/t}">
154 <tr>
155 <td><label for="CtxInitialProgram">{t}Initial program{/t}</label></td>
156 <td>
157 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxInitialProgram}
158 <input type='text' id="CtxInitialProgram" name="CtxInitialProgram" size=35 maxlength=60 value="{$CtxInitialProgram}" {$inheritstate} {$tsloginstate}>
159 {/render}
160 </td>
161 </tr>
162 <tr>
163 <td><label for="CtxWorkDirectory">{t}Working directory{/t}</label></td>
164 <td>
165 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWorkDirectory}
166 <input type='text' id="CtxWorkDirectory" name="CtxWorkDirectory" size=35 maxlength=60 value='{$CtxWorkDirectory}' {$inheritstate} {$tsloginstate}>
167 {/render}
168 </td>
169 </tr>
170 </table>
171 </td>
172 </tr>
173 </table>
175 <hr>
177 <table style='width:100%; ' summary="{t}Connection timeout settings{/t}">
179 <tr>
180 <td>
182 <i>{t}Timeout settings (in minutes){/t}</i>
183 <table summary="{t}Connection timeout settings{/t}">
184 <tr>
185 <td>
186 {if $multiple_support}
187 <input type="checkbox" name="use_CtxMaxConnectionTimeF" {if $use_CtxMaxConnectionTimeF} checked {/if}
188 onClick="changeState('CtxMaxConnectionTimeF');" class="center"
189 >
190 {/if}
191 {render acl=$AllowLoginOnTerminalServerACL}
192 <input id="CtxMaxConnectionTimeF" type="checkbox" class="center" name="CtxMaxConnectionTimeF"
193 {if !$use_CtxMaxConnectionTimeF && $multiple_support} disabled {/if}
194 value="1" {$CtxMaxConnectionTimeF}
195 onclick="changeState('CtxMaxConnectionTime')" {$tsloginstate}>
196 {/render}
198 <label for="CtxMaxConnectionTimeF">{t}Connection{/t}</label>
199 </td>
200 <td>
201 {render acl=$AllowLoginOnTerminalServerACL}
202 <input name="CtxMaxConnectionTime" type="text" id="CtxMaxConnectionTime" size=5 maxlength=5 value="{$CtxMaxConnectionTime}"
203 {if !$CtxMaxConnectionTimeF || $tsloginstate == "disabled"} disabled {/if}>
204 {/render}
205 </td>
206 </tr>
207 <tr>
208 <td>
209 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxMaxDisconnectionTimeF}
210 <input id="CtxMaxDisconnectionTimeF" type=checkbox name="CtxMaxDisconnectionTimeF" value="1" {$CtxMaxDisconnectionTimeF} onclick="changeState('CtxMaxDisconnectionTime')" {$tsloginstate} class="center">
211 {/render}
212 <label for="CtxMaxDisconnectionTimeF">{t}Disconnection{/t}</label>
213 </td>
214 <td>
215 {render acl=$AllowLoginOnTerminalServerACL}
216 <input name="CtxMaxDisconnectionTime" id="CtxMaxDisconnectionTime" type="text" size=5 maxlength=5 value="{$CtxMaxDisconnectionTime}"
217 {if $tsloginstate == "disabled" || !$CtxMaxDisconnectionTimeF} disabled {/if}>
218 {/render}
219 </td>
220 </tr>
221 <tr>
222 <td>
223 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxMaxIdleTimeF}
224 <input id="CtxMaxIdleTimeF" type=checkbox name="CtxMaxIdleTimeF" value="1" {$CtxMaxIdleTimeF} onclick="changeState('CtxMaxIdleTime')" {$tsloginstate} class="center">
225 {/render}
226 <label for="CtxMaxIdleTimeF">{t}IDLE{/t}</label>
227 </td>
228 <td>
229 {render acl=$AllowLoginOnTerminalServerACL}
230 <input name="CtxMaxIdleTime" id="CtxMaxIdleTime" size=5 maxlength=5 type="text" value="{$CtxMaxIdleTime}"
231 {if !$CtxMaxIdleTimeF || $tsloginstate == "disabled"} disabled {/if}>
232 {/render}
233 </td>
234 </tr>
235 </table>
236 </td>
237 <td class='left-border'>
239
240 </td>
241 <td>
244 <i>{t}Client devices{/t}</i>
245 <table summary="{t}Client devices{/t}">
246 <tr>
247 <td>
248 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_connectclientdrives}
249 <input id="connectclientdrives" type=checkbox name="connectclientdrives" value="1" {$connectclientdrives} {$tsloginstate} class="center">
250 {/render}
251 <label for="connectclientdrives">{t}Connect client drives at log on{/t}</label>
252 </td>
253 </tr>
254 <tr>
255 <td>
256 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_connectclientprinters}
257 <input id="connectclientprinters" type=checkbox name="connectclientprinters" value="1" {$connectclientprinters}{$tsloginstate} class="center">
258 {/render}
259 <label for="connectclientprinters">{t}Connect client printers at log on{/t}</label>
260 </td>
261 </tr>
262 <tr>
263 <td>
264 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_defaultprinter}
265 <input id="defaultprinter" type=checkbox name="defaultprinter" value="1" {$defaultprinter} {$tsloginstate} class="center">
266 {/render}
267 <label for="defaultprinter">{t}Default to main client printer{/t}</label>
268 </td>
269 </tr>
270 </table>
272 </td>
273 <td class='left-border'>
275
276 </td>
277 <td style='width:50%'>
279 <i>{t}Miscellaneous{/t}</i>
280 <table summary="{t}Miscellaneous{/t}">
281 <tr>
282 <td>
283 <label for="shadow">{t}Shadowing{/t}</label>
284 </td>
285 <td>
286 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_shadow}
287 <select id="shadow" size="1" name="shadow" {$tsloginstate}>
288 {html_options options=$shadow selected=$shadowmode}
289 </select>
290 {/render}
291 </td>
292 </tr>
293 <tr>
294 <td><label for="brokenconn">{t}On broken or timed out{/t}</label></td>
295 <td>
296 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_brokenconn}
297 <select id="brokenconn" size="1" name="brokenconn" {$tsloginstate}>
298 {html_options options=$brokenconn selected=$brokenconnmode}
299 </select>
300 {/render}
301 </td>
302 </tr>
303 <tr>
304 <td><label for="reconn">{t}Reconnect if disconnected{/t}</label></td>
305 <td>
306 {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_reconn}
307 <select id="reconn" size="1" name="reconn" {$tsloginstate}>
308 {html_options options=$reconn selected=$reconnmode}
309 </select>
310 {/render}
311 </td>
312 </tr>
313 </table>
315 </td>
316 </tr>
317 </table>
319 <hr>
321 <h3>{t}Access options{/t}
322 </h3>
324 <table style='width:100%; ' summary="{t}Access options{/t}">
326 <tr>
327 <td style='width:50%; ' colspan="2">
330 <table>
331 <tr>
332 <td>
333 {render acl=$enforcePasswordChangeACL checkbox=$multiple_support checked=$use_enforcePasswordChange}
334 <input type='checkbox' value='1' name='flag_enforcePasswordChange'
335 {if $flag_enforcePasswordChange} checked {/if} id='flag_enforcePasswordChange'>
336 {/render}
337 </td>
338 <td>
339 <label for='flag_enforcePasswordChange'>{t}Enforce password change{/t}</label>
340 </td>
341 </tr>
342 <tr>
343 <td>
344 {render acl=$passwordNeverExpiresACL checkbox=$multiple_support checked=$use_passwordNeverExpires}
345 <input type='checkbox' value='1' name="flag_passwordNeverExpires"
346 {if $flag_passwordNeverExpires} checked {/if} id='flag_passwordNeverExpires'>
347 {/render}
348 </td>
349 <td>
350 <label for="flag_passwordNeverExpires">{t}The password never expires{/t}</label>
351 </td>
352 </tr>
353 <tr>
354 <td>
355 {render acl=$noPasswordRequiredACL checkbox=$multiple_support checked=$use_noPasswordRequired}
356 <input type='checkbox' value='1' name="flag_noPasswordRequired"
357 {if $flag_noPasswordRequired} checked {/if} id='flag_noPasswordRequired'>
358 {/render}
359 </td>
360 <td>
361 <label for="flag_noPasswordRequired">{t}Login from windows client requires no password{/t}</label>
362 </td>
363 </tr>
364 <tr>
365 <td>
366 {render acl=$temporaryDisabledACL checkbox=$multiple_support checked=$use_temporaryDisabled}
367 <input type='checkbox' value='1' name="flag_temporaryDisabled"
368 {if $flag_temporaryDisabled} checked {/if} id='flag_temporaryDisabled'>
369 {/render}
370 </td>
371 <td>
372 <label for="flag_temporaryDisabled">{t}Lock samba account{/t}</label>
373 </td>
374 </tr>
375 <tr>
376 <td>
377 {render acl=$cannotChangePasswordACL checkbox=$multiple_support checked=$use_cannotChangePassword}
378 <input type='checkbox' value='1' name='flag_cannotChangePassword'
379 {if $flag_cannotChangePassword} checked {/if} id='flag_cannotChangePassword'>
380 {/render}
381 </td>
382 <td>
383 <label for="flag_cannotChangePassword">{t}Cannot change password{/t}</label>
384 </td>
385 </tr>
388 </table>
389 <table>
390 <tr>
391 <td colspan=2>
392 {render acl=$sambaKickoffTimeACL checkbox=$multiple_support checked=$use_sambaKickoffTime}
393 <input id="flag_sambaKickoffTime" type=checkbox name="flag_sambaKickoffTime" value="1"
394 {if $flag_sambaKickoffTime} checked {/if} class="center">
395 {/render}
396 <label for="flag_sambaKickoffTime">{t}Account expires after{/t}</label>
397 </td>
398 <td style='width:200px;'>
399 {render acl=$sambaKickoffTimeACL}
400 <input type="text" id="sambaKickoffTime" name="sambaKickoffTime" class="date" style='width:100px' value="{$sambaKickoffTime}">
401 {if $sambaKickoffTimeACL|regex_replace:"/[cdmr]/":"" == "w"}
402 <script type="text/javascript">
403 {literal}
404 var datepicker2 = new DatePicker({
405 relative : 'sambaKickoffTime',
406 language : '{/literal}{$lang}{literal}',
407 keepFieldEmpty : true,
408 enableCloseEffect : false,
409 enableShowEffect : false });
410 {/literal}
411 </script>
412 {/if}
413 {/render}
414 </td>
415 </tr>
416 <tr>
417 <td>
418 </td>
419 <td>
420 {if $additional_info_PwdMustChange}
421 <i>({$additional_info_PwdMustChange})</i>
422 {/if}
423 </td>
424 </tr>
425 </table>
428 <hr>
430 {render acl=$sambaLogonHoursACL mode=read_active checkbox=$multiple_support checked=$use_SetSambaLogonHours}
431 {t}Samba log on times{/t} <button type='submit' name='SetSambaLogonHours'>{t}Edit settings...{/t}</button>
432 {/render}
433 <!-- /Samba policies -->
435 </td>
436 <td class='left-border'>
438
439 </td>
440 <td>
442 <label for="workstation_list">{t}Allow connection from these workstations only{/t}</label>
443 <br>
445 {if $multiple_support}
446 <input type="checkbox" name="use_workstation_list" {if $use_workstation_list} checked {/if} class="center"
447 onClick="changeState('workstation_list');">
448 <select {if $multiple_support && !$use_workstation_list} disabled {/if}
449 id="workstation_list" style="width:100%;" name="workstation_list[]" size=10 multiple>
451 {foreach from=$multiple_workstations item=item key=key}
452 {if $item.UsedByAllUsers}
453 <option value="{$key}">{$item.Name} ({t}Used by all users{/t})</option>
454 {else}
455 <option style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'
456 value="{$key}">{$item.Name} ({t}Used by some users{/t})</option>
457 {/if}
458 {/foreach}
459 </select>
460 <br>
461 <button type='submit' name='add_ws'>{msgPool type=addButton}</button>
463 <button type='submit' name='delete_ws'>{msgPool type=delButton}</button>
465 {else}
466 {render acl=$sambaUserWorkstationsACL}
467 <select id="workstation_list" style="width:100%;" name="workstation_list[]" size=5 multiple>
468 {html_options values=$workstations output=$workstations}
469 </select>
470 {/render}
471 <br>
472 {render acl=$sambaUserWorkstationsACL}
473 <button type='submit' name='add_ws'>{msgPool type=addButton}</button>
475 {/render}
476 {render acl=$sambaUserWorkstationsACL}
477 <button type='submit' name='delete_ws'>{msgPool type=delButton}</button>
479 {/render}
480 {/if}
481 </td>
482 </tr>
483 </table>
485 <input type="hidden" name="sambaTab" value="sambaTab">