1 <div>
2 <div class='default'>
4 {if $method == "default"}
5 <p>{t}During the LDAP inspection, we're going to check for several common pitfalls that may occur when migration to GOsa base LDAP administration. You may want to fix the problems below, in order to provide smooth services.{/t}
6 </p>
8 {foreach from=$checks item=val key=key}
9 <div style='width:98%; padding:4px; background-color:{cycle values="#F0F0F0, #FFF"}'>
11 {if $checks.$key.ERROR_MSG}
12 <!-- Add ability to display info popup -->
13 <div class='step2_entry_container_info'>
14 {else}
15 <!-- Normal entry everything is fine -->
16 <div class='step2_entry_container'>
17 {/if}
18 <div class='step2_entry_name'>{$checks.$key.TITLE}</div>
19 <div class='step2_entry_status'>
20 {if $checks.$key.STATUS}
21 <div class='step2_successful'>{$checks.$key.STATUS_MSG}</div>
22 {else}
23 <div class='step2_failed'>{$checks.$key.STATUS_MSG}</div>
24 {/if}
25 </div>
26 {if $checks.$key.ERROR_MSG}
27 {$checks.$key.ERROR_MSG}
28 {/if}
29 </div>
30 </div>
31 {/foreach}
32 <br>
33 <input type='submit' name='reload' value='{t}Check again{/t}'>
35 {elseif $method == "outside_winstations"}
37 <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
39 {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
40 <br>
41 {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
42 <br>
43 <br>
45 {foreach from=$outside_winstations item=val key=key}
46 {if $outside_winstations.$key.selected}
47 <input type='checkbox' name='select_winstation_{$key}' checked>
48 {else}
49 <input type='checkbox' name='select_winstation_{$key}'>
50 {/if}
52 {$outside_winstations.$key.dn}
53 {if $outside_winstations.$key.ldif != ""}
54 <div class="step2_entry_container_info" id="sol_8">
55 <div style='padding-left:20px;'>
56 <pre>
57 {$outside_winstations.$key.ldif}
58 </pre>
59 </div>
60 </div>
61 {/if}
62 <br>
63 {/foreach}
65 <p>
66 <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
67 <select name='move_winstation_to'>
68 {html_options options=$ous}
69 </select>
70 <br>
71 <input type='submit' name='outside_winstations_dialog_perform' value='{t}Move selected workstations{/t}'>
72 <input type='submit' name='outside_winstations_dialog_whats_done' value='{t}What will be done here{/t}'>
73 </p>
76 <p class='seperator'> </p>
77 <div style='width:100%; text-align:right; padding:5px;'>
78 <input type='submit' name='outside_winstations_dialog_cancel' value='{t}Close{/t}'>
79 </div>
82 {elseif $method == "outside_groups"}
84 <h2>{t}Move groups into valid group departments{/t}</h2>
86 {t}This dialog allows you to move the displayed groups into a valid group department{/t}
87 <br>
88 {t}Be careful with this tool, there may be references pointing to this group that can't be migrated.{/t}
89 <br>
90 <br>
92 {foreach from=$outside_groups item=val key=key}
93 {if $outside_groups.$key.selected}
94 <input type='checkbox' name='select_group_{$key}' checked>
95 {else}
96 <input type='checkbox' name='select_group_{$key}'>
97 {/if}
99 {$outside_groups.$key.dn}
100 {if $outside_groups.$key.ldif != ""}
101 <div class="step2_entry_container_info" id="sol_8">
102 <div style='padding-left:20px;'>
103 <pre>
104 {$outside_groups.$key.ldif}
105 </pre>
106 </div>
107 </div>
108 {/if}
109 <br>
110 {/foreach}
112 <p>
113 <b>{t}Move selected group into the following GOsa people department{/t} : </b>
114 <select name='move_group_to'>
115 {html_options options=$ous}
116 </select>
117 <br>
118 <input type='submit' name='outside_groups_dialog_perform' value='{t}Move selected groups{/t}'>
119 <input type='submit' name='outside_groups_dialog_whats_done' value='{t}What will be done here{/t}'>
120 </p>
123 <p class='seperator'> </p>
124 <div style='width:100%; text-align:right; padding:5px;'>
125 <input type='submit' name='outside_groups_dialog_cancel' value='{t}Close{/t}'>
126 </div>
128 {elseif $method == "outside_users"}
130 <h2>{t}Move users into valid user departments{/t}</h2>
132 {t}This dialog allows you to move the displayed users into a valid user department{/t}
133 <br>
134 {t}Be careful with this tool, there may be references pointing to this user that can't be migrated.{/t}
135 <br>
136 <br>
138 {foreach from=$outside_users item=val key=key}
139 {if $outside_users.$key.selected}
140 <input type='checkbox' name='select_user_{$key}' checked>
141 {else}
142 <input type='checkbox' name='select_user_{$key}'>
143 {/if}
145 {$outside_users.$key.dn}
146 {if $outside_users.$key.ldif != ""}
147 <div class="step2_entry_container_info" id="sol_8">
148 <div style='padding-left:20px;'>
149 <pre>
150 {$outside_users.$key.ldif}
151 </pre>
152 </div>
153 </div>
154 {/if}
155 <br>
156 {/foreach}
158 <p>
159 <b>{t}Move selected user into the following GOsa people department{/t} : </b>
160 <select name='move_user_to'>
161 {html_options options=$ous}
162 </select>
163 <br>
164 <input type='submit' name='outside_users_dialog_perform' value='{t}Move selected user{/t}'>
165 <input type='submit' name='outside_users_dialog_whats_done' value='{t}What will be done here{/t}'>
166 </p>
169 <p class='seperator'> </p>
170 <div style='width:100%; text-align:right; padding:5px;'>
171 <input type='submit' name='outside_users_dialog_cancel' value='{t}Close{/t}'>
172 </div>
175 {elseif $method == "create_acls"}
177 <h2>{t}Acl setup{/t}</h2>
179 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
180 <div>
181 <pre>
182 {$what_will_be_done_now}
183 </pre>
184 </div>
185 <input type='submit' name='create_acls_create_confirmed' value='{t}Next{/t}'>
186 <input type='submit' name='create_acls_create_abort' value='{t}Abort{/t}'>
187 {else}
188 <b>{t}Create a new user with adminstrational acls{/t}</b><br>
190 {t}To automatically add a new administrative user to your ldap database use the formular below.{/t}<br>
191 <p style='padding-left:10px;'>
192 <table>
193 <tr>
194 <td>
195 {t}Name{/t}:
196 </td>
197 <td>
198 <i>System administrator</i>
199 </td>
200 <tr>
201 <tr>
202 <td>
203 {t}User ID{/t}:
204 </td>
205 <td>
206 <i>admin</i>
207 </td>
208 <tr>
209 </tr>
210 <td>
211 {t}Password{/t}:
212 </td>
213 <td>
214 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
215 </td>
216 </tr>
217 </tr>
218 <td>
219 {t}Retype password{/t}:
220 </td>
221 <td>
222 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
223 </td>
224 </tr>
225 </table>
226 <input type='submit' name='create_admin_user' value='{t}Create{/t}'>
227 </p>
229 {if $users_cnt != 0 || $groups_cnt != 0}
231 <p> </p>
232 <b>{t}Append administrational acls to existing an user or a group{/t}</b><br>
233 {t}To grant administrative permissions to a user or a group, select an element and use button below.{/t}
234 <p style='padding-left:10px;'>
235 <select name='acl_create_type' onChange='document.mainform.submit();' >
236 {if $type == "user"}
237 <option value='group'>{t}Group{/t}</option>
238 <option selected value='user'>{t}User{/t}</option>
239 {else}
240 <option selected value='group'>{t}Group{/t}</option>
241 <option value='user'>{t}User{/t}</option>
242 {/if}
243 </select>
244 <select name='create_acls_selected' size="12" style='width:100%;'>
245 {if $type == "user"}
246 {html_options options=$users selected=$acl_create_selected}
247 {else}
248 {html_options options=$groups selected=$acl_create_selected}
249 {/if}
250 </select>
252 <input type='submit' name='create_acls_create' value='{t}Add administrational acls to this object{/t}'>
253 </p>
254 {/if}
255 {/if}
258 <p class='seperator'> </p>
260 <div style='width:100%; text-align:right; padding:5px;'>
261 <input type='submit' name='create_acls_cancel' value='{t}Close{/t}'>
262 </div>
265 {elseif $method == "migrate_deps"}
267 <h2>Department migration</h2>
269 {t}The listed deparmtents below are currenlty invisble in the GOsa user interface. If you want to migrate a set of departments, just select them and use the migrate button below.{/t}<br>
270 {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
273 <br><br>
274 {foreach from=$deps_to_migrate item=val key=key}
276 {if $deps_to_migrate.$key.checked}
277 <input type='checkbox' name='migrate_{$key}' checked>
278 {$deps_to_migrate.$key.dn}
279 {if $deps_to_migrate.$key.after != ""}
280 <div class="step2_entry_container_info" id="sol_8">
282 {t}Current{/t}
283 <div style='padding-left:20px;'>
284 <pre>
285 dn: {$deps_to_migrate.$key.dn}
286 {$deps_to_migrate.$key.before}
287 </pre>
288 </div>
289 {t}After migration{/t}
290 <div style='padding-left:20px;'>
291 <pre>
292 dn: {$deps_to_migrate.$key.dn}
293 {$deps_to_migrate.$key.after}
294 </pre>
295 </div>
296 </div>
297 {/if}
298 {else}
299 <input type='checkbox' name='migrate_{$key}'>
300 {$deps_to_migrate.$key.dn}
301 {/if}
303 <br>
306 {/foreach}
307 <br>
309 <input type='submit' name='deps_visible_migrate_refresh' value='{t}Reload list{/t}'>
310 <input type='submit' name='deps_visible_migrate_migrate' value='{t}Migrate{/t}'>
311 <input type='submit' name='deps_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
313 <p class='seperator'> </p>
315 <div style='width:100%; text-align:right; padding:5px;'>
316 <input type='submit' name='deps_visible_migrate_close' value='{t}Close{/t}'>
317 </div>
318 {elseif $method == "migrate_users"}
320 <h2>User migration</h2>
322 {t}The listed users below are currenlty invisble in the GOsa user interface. If you want to migrate a set of users, just select them and use the migrate button below.{/t}<br>
323 {t}If you want to know what will be done when migrating the selected entries, just use the 'What will be done here' button and you will see a list of changes.{/t}
326 <br><br>
327 {foreach from=$users_to_migrate item=val key=key}
329 {if $users_to_migrate.$key.checked}
330 <input type='checkbox' name='migrate_{$key}' checked>
331 {$users_to_migrate.$key.dn}
332 {if $users_to_migrate.$key.after != ""}
333 <div class="step2_entry_container_info" id="sol_8">
335 {t}Current{/t}
336 <div style='padding-left:20px;'>
337 <pre>
338 dn: {$users_to_migrate.$key.dn}
339 {$users_to_migrate.$key.before}
340 </pre>
341 </div>
342 {t}After migration{/t}
343 <div style='padding-left:20px;'>
344 <pre>
345 dn: {$users_to_migrate.$key.dn}
346 {$users_to_migrate.$key.after}
347 </pre>
348 </div>
349 </div>
350 {/if}
351 {else}
352 <input type='checkbox' name='migrate_{$key}'>
353 {$users_to_migrate.$key.dn}
354 {/if}
356 <br>
359 {/foreach}
360 <br>
362 <input type='submit' name='users_visible_migrate_refresh' value='{t}Reload list{/t}'>
363 <input type='submit' name='users_visible_migrate_migrate' value='{t}Migrate{/t}'>
364 <input type='submit' name='users_visible_migrate_whatsdone' value='{t}What will be done here{/t}'>
366 <p class='seperator'> </p>
368 <div style='width:100%; text-align:right; padding:5px;'>
369 <input type='submit' name='users_visible_migrate_close' value='{t}Close{/t}'>
370 </div>
371 {else}
373 * Create a test department with some objects to check for correct permissions
374 <br>
375 * Look for ACL's. If none is there, choose one user to be the super administrator
376 <br>
377 * Look for organizationalUnits and let add GOsa departments for selected ones
378 <br>
379 * Look for person / organizationalPerson and add GOsa account
380 <br>
381 * Allow to move selected users to people ou's - take care for groupOfNames
382 <br>
383 * Allow to move selected groups to group ou's - take care for groupOfNames
384 <br>
385 * Allow to move selected winstations to winstation ou's - take care for groupOfNames
386 <br>
387 * Check for double uidNumbers/gidNumbers
388 <br>
389 * Check for mail accounts and add gosaMailAccount - optionally create these accounts on the IMAP server
392 {/if}
393 </div>
394 </div>