summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e59f6c)
raw | patch | inline | side by side (parent: 9e59f6c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 May 2007 14:01:09 +0000 (14:01 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 May 2007 14:01:09 +0000 (14:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6282 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Migrate.inc | patch | blob | history | |
setup/setup_migrate.tpl | patch | blob | history |
index 303c24f85b79004c57ccb36b3efcdedc58d6d153..b8e8608688d1f91762c40f8092237f812aadecff 100644 (file)
if($this->check_uidNumbers){
$this->checks['uidNumber_usage']['STATUS'] = FALSE;
- $this->checks['uidNumber_usage']['STATUS_MSG']= _("Failed");
+ $this->checks['uidNumber_usage']['STATUS_MSG']= "<font style='color:#F0A500'>"._("Warning")."</font>";
$this->checks['uidNumber_usage']['ERROR_MSG'] =
sprintf(_("Found %s duplicated uidNumber values."),count($this->check_uidNumbers));
return(false);
$cv['tls']);
$ldap->cd($cv['base']);
- $res = $ldap->search("gidNumber=*",array("dn","gidNumber"));
+ $res = $ldap->search("(&(objectClass=posixGroup)(gidNumber=*))",array("dn","gidNumber"));
if(!$res){
$this->checks['gidNumber_usage']['STATUS'] = FALSE;
$this->checks['gidNumber_usage']['STATUS_MSG']= _("LDAP query failed");
if($this->check_gidNumbers){
$this->checks['gidNumber_usage']['STATUS'] = FALSE;
- $this->checks['gidNumber_usage']['STATUS_MSG']= _("Failed");
+ $this->checks['gidNumber_usage']['STATUS_MSG']= "<font style='color:#F0A500'>"._("Warning")."</font>";
$this->checks['gidNumber_usage']['ERROR_MSG'] =
- sprintf(_("Found %s duplicated gidNumber values."),count($this->check_gidNumbers));
+ sprintf(_("Found %s duplicate gidNumber."),count($this->check_gidNumbers));
return(false);
}else{
$this->checks['gidNumber_usage']['STATUS'] = TRUE;
$this->checks['outside_winstations']['STATUS_MSG']= _("Failed");
$this->checks['outside_winstations']['ERROR_MSG'] =
sprintf(_("Found %s winstations outside the predefined winstation department ou '%s'."),count($this->outside_winstations),$winstation_ou);
- $this->checks['outside_winstations']['ERROR_MSG'].= "<input type='submit' name='outside_winstations_dialog' value='"._("Migrate")."'>";
+ $this->checks['outside_winstations']['ERROR_MSG'].= "<input type='submit' name='outside_winstations_dialog' value='"._("Migrate")."...'>";
return(false);
}else{
$this->checks['outside_winstations']['STATUS'] = TRUE;
$this->checks['outside_groups']['STATUS_MSG']= _("Failed");
$this->checks['outside_groups']['ERROR_MSG'] =
sprintf(_("Found %s groups outside the selected group ou '%s'."),count($this->outside_groups),$group_ou);
- $this->checks['outside_groups']['ERROR_MSG'].= "<input type='submit' name='outside_groups_dialog' value='"._("Migrate")."'>";
+ $this->checks['outside_groups']['ERROR_MSG'].= "<input type='submit' name='outside_groups_dialog' value='"._("Migrate")."...'>";
return(false);
}else{
$this->checks['outside_groups']['STATUS'] = TRUE;
$this->checks['outside_users']['STATUS_MSG']= "<font style='color:#F0A500'>"._("Warning")."</font>";
$this->checks['outside_users']['ERROR_MSG'] =
sprintf(_("Found %s user(s) outside the selected user ou '%s'."),count($this->outside_users),$people_ou);
- $this->checks['outside_users']['ERROR_MSG'].= "<input type='submit' name='outside_users_dialog' value='"._("Migrate")."'>";
+ $this->checks['outside_users']['ERROR_MSG'].= "<input type='submit' name='outside_users_dialog' value='"._("Move")."...'>";
return(false);
}else{
$this->checks['outside_users']['STATUS'] = TRUE;
$this->checks['users_visible']['STATUS_MSG']= "<font style='color:#F0A500'>"._("Warning")."</font>";
$this->checks['users_visible']['ERROR_MSG'] = sprintf(_("Found %s user(s) that will not be visible in GOsa."),
count($this->users_to_migrate));
- $this->checks['users_visible']['ERROR_MSG'] .= "<input type='submit' name='users_visible_migrate' value='"._("Migrate")."'>";
+ $this->checks['users_visible']['ERROR_MSG'] .= "<input type='submit' name='users_visible_migrate' value='"._("Migrate")."...'>";
}
}
$this->checks['deps_visible']['STATUS'] = TRUE;
$this->checks['deps_visible']['STATUS_MSG']= '<font style="color:#FFA500">'._("Warning").'</font>';
$this->checks['deps_visible']['ERROR_MSG'] = sprintf(_("Found %s department(s) that will not be visible in GOsa."),count($this->deps_to_migrate));
- $this->checks['deps_visible']['ERROR_MSG'] .= "<input type='submit' name='deps_visible_migrate' value='"._("Migrate")."'>";
+ $this->checks['deps_visible']['ERROR_MSG'] .= " <input type='submit' name='deps_visible_migrate' value='"._("Migrate")."...'>";
}
}
function migrate_outside_users($perform = FALSE)
{
+ $this->show_details= $perform;
+
/* Establish ldap connection */
$cv = $this->parent->captured_values;
$ldap = new LDAP($cv['admin'],
$smarty->assign("ous",$this->get_all_people_ous());
$smarty->assign("method","outside_users");
$smarty->assign("outside_users",$this->outside_users);
+ $smarty->assign("user_details", $this->show_details);
+var_dump($this->show_details);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
}
$this->checks['root']['STATUS'] = FALSE;
$this->checks['root']['STATUS_MSG']= _("Failed");
$this->checks['root']['ERROR_MSG'] = _("Root object couldn't be created, you should try it on your own.");
- $this->checks['root']['ERROR_MSG'].= "<input type='submit' name='retry_root_create' value='"._("Try to create root object")."'>";
+ $this->checks['root']['ERROR_MSG'].= " <input type='submit' name='retry_root_create' value='"._("Try to create root object")."'>";
return($res);;
}
}
index 8bcf7ddbbe7d3edee4f5e9b1ca66abfb39612054..c34243609bd186526616c66b0a159f28358d906d 100644 (file)
--- a/setup/setup_migrate.tpl
+++ b/setup/setup_migrate.tpl
<h2>{t}Move users into configured user tree{/t}</h2>
<p>
- {t}This dialog allows moving a couple of users to the configured user tree.{/t}
+ {t}This dialog allows moving a couple of users to the configured user tree. Doing this may straighten your LDAP service.{/t}
</p>
<p style='color:red'>
- {t}Be careful with this option! There may be references pointing to these users. The setup can't migrate references, so you may want to abort in this case.{/t}
+ {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 in this case.{/t}
</p>
-
+ <p>
+ {t}Move selected user into the following GOsa people department{/t}:
+ <select name='move_user_to'>
+ {html_options options=$ous}
+ </select>
+ </p>
{foreach from=$outside_users item=val key=key}
{if $outside_users.$key.selected}
<input type='checkbox' name='select_user_{$key}' checked>
{/if}
<br>
{/foreach}
-
- <p>
- <b>{t}Move selected user into the following GOsa people department{/t} : </b>
- <select name='move_user_to'>
- {html_options options=$ous}
- </select>
<br>
+ {if $user_details}
+ <input type='submit' name='outside_users_dialog_refresh' value='{t}Hide changes{/t}'>
+ {else}
<input type='submit' name='outside_users_dialog_whats_done' value='{t}Show changes{/t}'>
- </p>
-
+ {/if}
<p class='seperator'> </p>
<div style='width:99%; text-align:right; padding:5px;'>