Code

Replaced config->search with get_cfg_value
[gosa.git] / gosa-core / setup / setup_migrate.tpl
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'><b>{$checks.$key.TITLE}</b></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                 <button type='submit' name='reload'>{t}Check again{/t}</button>
36                 {elseif $method == "rootOC_migrate_dialog"}
38                         <h2>{t}Add required object classes to the LDAP base{/t}</h2>
40                         <b>{t}Current{/t}</b>
41                         <div class="step2_entry_container_info">
42                                 <div style='padding-left:20px;'>
43                                         <pre>{$details.current}</pre>
44                                 </div>
45                         </div>
46                         <br>
47                         <b>{t}After migration{/t}</b>
48                         <div class="step2_entry_container_info">
49                                 <div style='padding-left:20px;'>
50                                         <pre>{$details.target}</pre>
51                                 </div>
52                         </div>
54                         <br>
55                         <button type='submit' name='rootOC_migrate_start'>{t}Migrate{/t}</button>
57                         </p>
58                                 
60                         <hr>    
61                         <div style='width:100%; text-align:right; padding:5px;'>
62                                 <button type='submit' name='rootOC_dialog_cancel'>{t}Close{/t}</button>
64                         </div>
66                 {elseif $method == "outside_winstations"}
68                         <h2>{t}Move windows workstations into a valid windows workstation department{/t}</h2>
70                         {t}This dialog allows you to move the displayed windows workstations into a valid department{/t}
71                         <br>
72                         {t}Be careful with this tool, there may be references pointing to this workstations that can't be migrated.{/t}
73                         <br>
74                         <br>    
76                         {foreach from=$outside_winstations item=val key=key}
77                                 {if $outside_winstations.$key.selected}
78                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}' checked>
79                                 {else}
80                                         <input id='select_winstation_{$key}' type='checkbox' name='select_winstation_{$key}'>
81                                 {/if}
83                                 &nbsp;{$outside_winstations.$key.dn}
84                                 {if $outside_winstations.$key.ldif != ""}
85                     <div class="step2_entry_container_info" id="sol_8">
86                                                 <div style='padding-left:20px;'>
87                                                         <pre>
88                                                                 {$outside_winstations.$key.ldif}
89                                                         </pre>
90                                                 </div>
91                                         </div>
92                                 {/if}
93                                 <br>
94                         {/foreach}
95                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_winstation_','toggle_calue')">
96                         {t}Select all{/t}
97                         <p>
98                         <b>{t}Move selected windows workstations into the following GOsa department{/t} : </b>
99                         <select name='move_winstation_to' size=1>
100                                 {html_options options=$ous}
101                         </select>
102                         <br>
103                         <button type='submit' name='outside_winstations_dialog_perform'>{t}Move selected workstations{/t}</button>
105                         <button type='submit' name='outside_winstations_dialog_whats_done'>{t}What will be done here{/t}</button>
107                         </p>
108                                 
110                         <hr>    
111                         <div style='width:100%; text-align:right; padding:5px;'>
112                                 <button type='submit' name='outside_winstations_dialog_cancel'>{t}Close{/t}</button>
114                         </div>
115                 
117                 {elseif $method == "outside_groups"}
119                         <h2>{t}Move groups into configured group tree{/t}</h2>
121                         <p>
122                         {t}This dialog allows moving a couple of groups to the configured group tree. Doing this may straighten your LDAP service.{/t}
123                         </p>
124                         <p style='color:red'>
125                         {t}Be careful with this option! There may be references pointing to these groups. The GOsa setup can't migrate references, so you may want to cancel the migration in this case.{/t}
126                         </p>
127                         <p>
128                         {t}Move selected groups into this group tree{/t}: 
129                         <select name='move_group_to' size=1>
130                                 {html_options options=$ous}
131                         </select>
132                         </p>
134                         {foreach from=$outside_groups item=val key=key}
135                                 {if $outside_groups.$key.selected}
136                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}' checked>
137                                 {else}
138                                         <input id='select_group_{$key}' type='checkbox' name='select_group_{$key}'>
139                                 {/if}
141                                 &nbsp;{$outside_groups.$key.dn}
142                                 {if $outside_groups.$key.ldif != "" && $group_details}
143                       <div class="step2_entry_container_info" id="sol_8">
144 <div style='padding-left:20px;'>
145 <pre>
146 {$outside_groups.$key.ldif}
147 </pre>
148 </div>
149 </div>
150                                 {/if}
151                                 <br>
152                         {/foreach}
154                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_group_','toggle_calue')">
155                         {t}Select all{/t}
156                         <br>
157                         <p>
158                         {if $group_details}
159                         <button type='submit' name='outside_groups_dialog_refresh'>{t}Hide changes{/t}</button>
161                         {else}
162                         <button type='submit' name='outside_groups_dialog_whats_done'>{t}Show changes{/t}</button>
164                         {/if}
165                         </p>
167                         <hr>    
168                         <div style='width:99%; text-align:right; padding:5px;'>
169                                 <button type='submit' name='outside_groups_dialog_perform'>{t}Apply{/t}</button>
171                                 &nbsp;
172                                 <button type='submit' name='outside_groups_dialog_cancel'>{t}Cancel{/t}</button>
174                         </div>
175                 
176                 {elseif $method == "outside_users"}
178                         <h2>{t}Move users into configured user tree{/t}</h2>
179                         <p>
180                         {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
181                         </p>
182                         <p style='color:red'>
183                         {t}Be careful with this option! There may be references pointing to these users. The GOsa setup can't migrate references, so you may want to cancel the migration in this case.{/t}
184                         </p>    
185                         <p>
186                         {t}Move selected users into this people tree{/t}: 
187                         <select name='move_user_to' size=1>
188                                 {html_options options=$ous}
189                         </select>
190                         </p>
191                         {foreach from=$outside_users item=val key=key}
192                                 {if $outside_users.$key.selected}
193                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}' checked>
194                                 {else}
195                                         <input id='select_user_{$key}' type='checkbox' name='select_user_{$key}'>
196                                 {/if}
198                                 &nbsp;{$outside_users.$key.dn}
199                                 {if $outside_users.$key.ldif != "" && $user_details}
200                       <div class="step2_entry_container_info" id="sol_8">
201 <div style='padding-left:20px;'>
202 <pre>
203 {$outside_users.$key.ldif}
204 </pre>
205 </div>
206 </div>
207                                 {/if}
208                                 <br>
209                         {/foreach}
210                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^select_user_','toggle_calue')">
211                         {t}Select all{/t}
212                         <br>
214                         {if $user_details}
215                         <button type='submit' name='outside_users_dialog_refresh'>{t}Hide changes{/t}</button>
217                         {else}
218                         <button type='submit' name='outside_users_dialog_whats_done'>{t}Show changes{/t}</button>
220                         {/if}
222                         <hr>    
223                         <div style='width:99%; text-align:right; padding:5px;'>
224                                 <button type='submit' name='outside_users_dialog_perform'>{t}Apply{/t}</button>
226                                 &nbsp;
227                                 <button type='submit' name='outside_users_dialog_cancel'>{t}Cancel{/t}</button>
229                         </div>
230                 
232                 {elseif $method == "migrate_acls"}
233                         <h2>{t}Migrate GOsa 2.5 administrative accounts{/t}</h2>
234             <p>
235             {t}This dialog allows the migration of GOsa 2.5 admin accounts into GOsa 2.6 useable accounts.{/t}
236             </p>
237                         <table> 
238                                 <tr>    
239                                         <td></td>
240                                         <td></td>
241                                 </tr>
242                         {foreach from=$migrateable_users item=item key=key}
243                                 <tr>
244                                         <td><input type='checkbox' name='migrate_admin_{$key}' value='{$key}' {if $item.checked} checked {/if}></td>
245                                         <td>{$item.dn}</td>
246                                 </tr>
247                         {/foreach}
248                         </table>
250                         {if !$details}
251                                 <button type='submit' name='migrate_acls_show_changes'>{t}Show changes{/t}</button>
253                                 <input type='hidden' name='details' value='0'>
254                         {else}
255                                 <input type='hidden' name='details' value='1'>
257                                 <br>
258                                 <div class="step2_entry_container_info">
259                                 {t}Current{/t}
260                                 <div style='padding-left:20px;'>
261                                         <pre>{$migrate_acl_base_entry}</pre>
262                                 </div>
263                                 {t}After migration{/t}
264                                 <div style='padding-left:20px;'>
265                                         <pre>{$migrate_acl_base_entry}{foreach from=$migrateable_users item=item key=key}{if $item.checked}<b>{$item.details}</b>{/if}{/foreach}</pre>
266                                 </div>
267                                 </div>
268                                 <br>
269                                 <button type='submit' name='migrate_acls_hide_changes'>{t}Hide changes{/t}</button>
271                         {/if}
273                         <button type='submit' name=''>{t}Reload{/t}</button>
275                         <hr>    
276                         <div style='width:99%; text-align:right; padding:5px;'>
277                                 <button type='submit' name='migrate_admin_user'>{t}Apply{/t}</button>   
279                                 <button type='submit' name='migrate_acls_cancel'>{t}Cancel{/t}</button>
281                         </div>
283                 {elseif $method == "create_acls"}
285                 {if $acl_create_selected != "" && $what_will_be_done_now!=""}
286                         <div>
287 <pre>
288 {$what_will_be_done_now}
289 </pre>
290                         </div>          
291                         <button type='submit' name='create_acls_create_confirmed'>{t}Next{/t}</button>
293                         <button type='submit' name='create_acls_create_abort'>{t}Abort{/t}</button>
295                 {else}
296                         <h2>{t}Create a new GOsa administrator account{/t}</h2>
297         
298                         <p>
299                         {t}This dialog will automatically add a new super administrator to your LDAP tree.{/t}
300                         </p>
301                         <table>
302                                 <tr>
303                                         <td>
304                                                 {t}Name{/t}:&nbsp;
305                                         </td>
306                                         <td>
307                                                 <i>System administrator</i>
308                                         </td>
309                                 </tr>
310                                 <tr>
311                                         <td>
312                                                 {t}User ID{/t}:&nbsp;
313                                         </td>
314                                         <td>
315                                                 <input type='text' value='{$new_user_uid}' name='new_user_uid'><br>
316                                         </td>
317                                 </tr>
318                                 <tr>
319                                         <td>
320                                                 {t}Password{/t}:&nbsp;
321                                         </td>
322                                         <td>
323                                                 <input type='password' value='{$new_user_password}' name='new_user_password'><br>
324                                         </td>
325                                 </tr>
326                                 <tr>
327                                         <td>
328                                                 {t}Password (again){/t}:&nbsp;
329                                         </td>
330                                         <td>
332                                                 <input type='password' value='{$new_user_password2}' name='new_user_password2'><br>
333                                         </td>
334                                 </tr>
335                         </table>
336         
337 <!-- Place cursor -->
338 <script language="JavaScript" type="text/javascript">
339   <!-- // First input field on page
340         focus_field('new_user_password');
341   -->
342 </script>
344                         <hr>    
345                         <div style='width:99%; text-align:right; padding:5px;'>
346                                 <button type='submit' name='create_admin_user'>{t}Apply{/t}</button>    
348                                 <button type='submit' name='create_acls_cancel'>{t}Cancel{/t}</button>
350                         </div>
351                         {/if}   
352                 {elseif $method == "migrate_deps"}
353         
354                         <h2>Department migration</h2>
356                         <p>{t}The listed departments are currently invisible in the GOsa user interface. If you want to change this for a couple of entries, select them and use the migrate button below.{/t}</p>
357                         <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
358                                         
359                         {foreach from=$deps_to_migrate item=val key=key}
361                                 {if $deps_to_migrate.$key.checked}
362                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}' checked>
363                                         {$deps_to_migrate.$key.dn}
364                                         {if $deps_to_migrate.$key.after != ""}
365                                                 <div class="step2_entry_container_info" id="sol_8">
367 {t}Current{/t}
368 <div style='padding-left:20px;'>
369 <pre>
370 dn: {$deps_to_migrate.$key.dn}
371 {$deps_to_migrate.$key.before}
372 </pre>
373 </div>
374 {t}After migration{/t}
375 <div style='padding-left:20px;'>
376 <pre>
377 dn: {$deps_to_migrate.$key.dn}
378 {$deps_to_migrate.$key.after}
379 </pre>
380 </div>
381                                                 </div>
382                                         {/if}
383                                 {else}
384                                         <input id='migrate_{$key}' type='checkbox' name='migrate_{$key}'>
385                                         {$deps_to_migrate.$key.dn}
386                                 {/if}
387                                 
388                         <br>
389                         {/foreach}
390                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
391                         {t}Select all{/t}
392                         <br>
394                         {if $deps_details}
395                         <button type='submit' name='deps_visible_migrate_refresh'>{t}Hide changes{/t}</button>
397                         {else}
398                         <button type='submit' name='deps_visible_migrate_whatsdone'>{t}Show changes{/t}</button>
400                         {/if}
402                         <hr>    
404                         <div style='width:99%; text-align:right; padding:5px;'>
405                                 <button type='submit' name='deps_visible_migrate_migrate'>{t}Apply{/t}</button>
407                                 &nbsp;
408                                 <button type='submit' name='deps_visible_migrate_close'>{t}Cancel{/t}</button>
410                         </div>
411                 {elseif $method == "migrate_users"}
412         
413                         <h2>User migration</h2>
415                         <p>{t}The listed users are currently invisible in the GOsa user interface. If you want to change this for a couple of users, just select them and use the 'Migrate' button below.{/t}</p>
416                         <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
417                         {foreach from=$users_to_migrate item=val key=key}
419                                 {if $users_to_migrate.$key.checked}
420                                         <input type='checkbox' name='migrate_{$key}' checked id='migrate_{$key}'>
421                                         {$users_to_migrate.$key.dn}
422                                         {if $users_to_migrate.$key.after != ""}
423                                                 <div class="step2_entry_container_info" id="sol_8">
425 {t}Current{/t}
426 <div style='padding-left:20px;'>
427 <pre>
428 dn: {$users_to_migrate.$key.dn}
429 {$users_to_migrate.$key.before}
430 </pre>
431 </div>
432 {t}After migration{/t}
433 <div style='padding-left:20px;'>
434 <pre>
435 dn: {$users_to_migrate.$key.dn}
436 {$users_to_migrate.$key.after}
437 </pre>
438 </div>
439                                                 </div>
440                                         {/if}
441                                 {else}
442                                         <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}'>
443                                         {$users_to_migrate.$key.dn}
444                                 {/if}
445                                 <br>
446                         {/foreach}
447                         <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
448                         {t}Select all{/t}
449                         <br>
451                         {if $user_details}
452                         <button type='submit' name='users_visible_migrate_refresh'>{t}Hide changes{/t}</button>
454                         {else}
455                         <button type='submit' name='users_visible_migrate_whatsdone'>{t}Show changes{/t}</button>
457                         {/if}
459                         <hr>    
461                         <div style='width:99%; text-align:right; padding-top:5px;'>
462                                 <button type='submit' name='users_visible_migrate_migrate'>{t}Apply{/t}</button>
464                                 &nbsp;
465                                 <button type='submit' name='users_visible_migrate_close'>{t}Cancel{/t}</button>
467                         </div>
470         {elseif $method == "devices"}
473                         <h2>Devices</h2>
475                         <p>{t}The listed devices are currently invisible in the GOsa interface. If you want to change this for a couple of devices, just select them and use the 'Migrate' button below.{/t}</p>
476                         <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
477                 {foreach from=$devices item=item key=key}
478                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
479                                 <b>{$item.DEVICE_NAME}</b>
480                                  - {$item.DN} 
482                                 {if $item.DETAILS && $device_details}
483                                         <div class="step2_entry_container_info">
484                                                 <b>{t}Current{/t}</b>
485                                                 <pre>{$item.CURRENT}</pre>
486         
487                                                 
488                                                 <b>{t}After migration{/t}</b>
489                                                 <pre>{$item.AFTER}</pre>
490                                         </div>
491                                 {/if}
492                         <br>
493                 {/foreach}
494                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
495                 {t}Select all{/t}
496         
497                 <br>
499                 {if $device_details}
500                         <button type='submit' name='device_dialog_refresh'>{t}Hide changes{/t}</button>
502                         <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
504                 {else}
505                         <button type='submit' name='device_dialog_whats_done'>{t}Show changes{/t}</button>
507                 {/if}
509                 <hr>    
511                 <div style='width:99%; text-align:right; padding-top:5px;'>
512                         <button type='submit' name='migrate_devices'>{t}Apply{/t}</button>
514                         &nbsp;
515                         <button type='submit' name='device_dialog_cancel'>{t}Cancel{/t}</button>
517                 </div>
519         {elseif $method == "services"}
522                         <h2>Services</h2>
524                         <p>{t}The listed services are currently invalid for the GOsa version you are going to install. If you want to update a couple of service, just select them and use the 'Migrate' button below.{/t}</p>
525                         <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
526                 {foreach from=$services item=item key=key}
527                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
528                                 <b>{$item.DN}</b>
530                                 {if $item.DETAILS && $service_details}
531                                         <div class="step2_entry_container_info">
532                                                 <b>{t}Current{/t}</b>
533                                                 <pre>{$item.CURRENT}</pre>
534         
535                                                 
536                                                 <b>{t}After migration{/t}</b>
537                                                 <pre>{$item.AFTER}</pre>
538                                         </div>
539                                 {/if}
540                         <br>
541                 {/foreach}
542                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
543                 {t}Select all{/t}
544         
545                 <br>
547                 {if $service_details}
548                         <button type='submit' name='service_dialog_refresh'>{t}Hide changes{/t}</button>
550                         <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
552                 {else}
553                         <button type='submit' name='service_dialog_whats_done'>{t}Show changes{/t}</button>
555                 {/if}
557                 <hr>    
559                 <div style='width:99%; text-align:right; padding-top:5px;'>
560                         <button type='submit' name='migrate_services'>{t}Apply{/t}</button>
562                         &nbsp;
563                         <button type='submit' name='service_dialog_cancel'>{t}Cancel{/t}</button>
565                 </div>
568         {elseif $method == "menus"}
571                         <h2>Application menus</h2>
573                         <p>{t}The listed menus are currently invisible in the GOsa interface. If you want to change this for a couple of devices, just select them and use the 'Migrate' button below.{/t}</p>
574                         <p>{t}If you want to know what will be done when migrating the selected entries, use the 'Show changes' button to see the LDIF.{/t}</p>
575                 {foreach from=$menus item=item key=key}
576                 <input type='checkbox' name='migrate_{$key}' id='migrate_{$key}' {if $item.DETAILS} checked {/if}>
577                                 <b>{$item.DN}</b>
579                                 {if $item.DETAILS && $menu_details}
580                                         <div class="step2_entry_container_info">
581                                                 <b>{t}Current{/t}</b>
582                                                 <pre>{$item.CURRENT}</pre>
583         
584                                                 
585                                                 <b>{t}After migration{/t}</b>
586                                                 <pre>{$item.AFTER}</pre>
587                                         </div>
588                                 {/if}
589                         <br>
590                 {/foreach}
591                 <input type='checkbox' id='toggle_calue' onClick="toggle_all_('^migrate_','toggle_calue')">
592                 {t}Select all{/t}
593         
594                 <br>
596                 {if $menu_details}
597                         <button type='submit' name='menu_dialog_refresh'>{t}Hide changes{/t}</button>
599                         <button type='submit' name='dummy_11'>{t}Refresh{/t}</button>
601                 {else}
602                         <button type='submit' name='menu_dialog_whats_done'>{t}Show changes{/t}</button>
604                 {/if}
606                 <hr>    
608                 <div style='width:99%; text-align:right; padding-top:5px;'>
609                         <button type='submit' name='migrate_menus'>{t}Apply{/t}</button>
611                         &nbsp;
612                         <button type='submit' name='menu_dialog_cancel'>{t}Cancel{/t}</button>
614                 </div>
615         {/if}
616     </div>
617 </div>