2 {if $resolve_user}
4 <b>{t}Please choose the LDAP user to be used by GOsa{/t}</b>
5 <select name='admin_to_use' size=20 style="width:100%; margin-bottom:10px;">
6 {html_options options=$resolved_users selected=$admin}
7 </select>
9 <input type='text' value='{$resolve_filter}' name='resolve_filter'>
10 <button type='submit' name='resolve_search'>{t}Search{/t}</button>
12 <hr>
13 <div class="plugin-actions">
14 <button type='submit' name='use_selected_user'>{t}Apply{/t}</button>
15 <button type='submit' name='resolve_user'>{t}Cancel{/t}</button>
16 </div>
17 </div>
19 <div style="clear:both;"></div>
21 {else}
23 <b>{t}LDAP connection{/t}</b>
24 <table style='width:100%'>
25 <tr>
26 <td style='width:200px;'>{t}Location name{/t}</td>
27 <td><input type='text' name='location' maxlength='80' size='40' value='{$location}'></td>
28 </tr>
29 <tr>
30 <td>{t}Connection URI{/t}</td>
31 <td><input type='text' name='connection' maxlength='80' size='40' value='{$connection}'></td>
32 </tr>
33 <tr>
34 <td>{t}TLS connection{/t}</td>
35 <td>
36 <select name="tls" size="1" title="">
37 {html_options options=$bool selected=$tls}
38 </select>
39 </td>
40 </tr>
41 <tr>
42 <td>{t}Base{/t}</td>
43 <td>
44 {if $namingContextsCount >= 1}
45 <select name='base' size=1>
46 {html_options values=$namingContexts output=$namingContexts selected=$base}
47 </select>
48 {else}
49 <input type='text' name='base' maxlength='80' size='40' value='{$base}'>
50 {/if}
51 <input type='image' class='center' src='images/lists/reload.png'
52 title='{t}Reload{/t}' name='reload' alt='{t}Reload{/t}'>
53 </td>
54 </tr>
55 </table>
57 <hr>
58 <b>{t}Authentication{/t}</b>
59 <table style='width:100%'>
60 <tr>
61 <td style='width:200px;'>{t}Admin DN{/t}</td>
62 <td>
63 <input type='text' name='admin_given' maxlength='160' size='40' value='{$admin_given}'>
64 {if $append_base_to_admin_dn},{$base_to_append}{/if}
65 <input type='image' class='center' src='images/lists/folder.png'
66 title='{t}Select user{/t}' name='resolve_user' alt='{t}Select user{/t}'>
67 </td>
68 </tr>
69 <tr>
70 <td>
71 </td>
72 <td>
73 <input onClick='document.mainform.submit();'
74 {if $append_base_to_admin_dn} checked {/if}
75 type='checkbox' name='append_base_to_admin_dn' value='1'>
76 {t}Automatically append LDAP base to admin DN{/t}
77 </td>
78 </tr>
79 <tr>
80 <td>{t}Admin password{/t}</td>
81 <td><input type='password' name='password' maxlength='20' size='20' value='{$password}'></td>
82 </tr>
83 </table>
85 <hr>
86 <b>{t}Schema based settings{/t}</b>
87 <table style='width:100%'>
88 <tr>
89 <td style='width:200px;'>{t}Use rfc2307bis compliant groups{/t}</td>
90 <td>
91 <select name="rfc2307bis" size="1" title="">
92 {html_options options=$bool selected=$rfc2307bis}
93 </select>
94 </td>
95 </tr>
96 </table>
98 {if !$resolve_user}
99 <hr>
100 <b>{t}Current status{/t}</b>
101 <table style='width:100%'>
102 <tr>
103 <td style='width:200px;'>{t}Information{/t}</td>
104 <td>{$connection_status}</td>
105 </tr>
106 </table>
107 {/if}
108 {/if}
110 <!-- Place cursor -->
111 <script language="JavaScript" type="text/javascript">
112 <!-- // First input field on page
113 focus_field('location');
114 -->
115 </script>