Code

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