summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a5628a)
raw | patch | inline | side by side (parent: 8a5628a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Nov 2007 10:15:03 +0000 (10:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Nov 2007 10:15:03 +0000 (10:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7841 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Migrate.inc | patch | blob | history |
index 6e4d85f7ea6cc4c9f863bfd78c6efa872d269169..9b0faf1ee86e987c2790d4d728f49e02cddb86df 100644 (file)
/* Skip GOsa internal departments */
$skip_dns = array("/".$cv['peopleou']."/","/".$cv['groupou']."/","/^ou=people,/","/^ou=groups,/",
"/(,|)ou=configs,/","/(,|)ou=systems,/",
- "/(,|)ou=apps,/","/(,|)ou=mime,/","/^ou=aclroles,/","/^ou=incoming,/",
+ "/(,|)ou=apps,/","/(,|)ou=mime,/","/(,|)ou=devices/","/^ou=aclroles,/","/^ou=incoming,/",
"/ou=snapshots,/","/(,|)dc=addressbook,/","/^(,|)ou=machineaccounts,/",
"/(,|)ou=winstations,/");
*/
foreach($this->deps_to_migrate as $key => $attrs){
$dn = $attrs['dn'];
- $skip = false;
+ $skip = false;;
foreach($skip_dns as $skip_dn){
if(preg_match($skip_dn,$dn)){
$skip = true;
}
if($this->outside_winstations_dialog){
+
+ /* Fix displayed dn syntax */
+ $tmp = $this->outside_winstations;
+ foreach($tmp as $key => $data){
+ $tmp[$key]['dn'] = @LDAP::fix($data['dn']);
+ }
+
$smarty = get_smarty();
$smarty->assign("ous",$this->get_all_winstation_ous());
$smarty->assign("method","outside_winstations");
- $smarty->assign("outside_winstations",$this->outside_winstations);
+ $smarty->assign("outside_winstations",$tmp);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
}
/*************
}
if($this->outside_groups_dialog){
+
+ /* Fix displayed dn syntax */
+ $tmp = $this->outside_groups;
+ foreach($tmp as $key => $data){
+ $tmp[$key]['dn'] = @LDAP::fix($data['dn']);
+ }
+
$smarty = get_smarty();
$smarty->assign("ous",$this->get_all_group_ous());
$smarty->assign("method","outside_groups");
- $smarty->assign("outside_groups",$this->outside_groups);
+ $smarty->assign("outside_groups",$tmp);
$smarty->assign("group_details", $this->show_details);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
}
}
if($this->outside_users_dialog){
+
+ /* Fix displayed dn syntax */
+ $tmp = $this->outside_users;
+ foreach($tmp as $key => $data){
+ $tmp[$key]['dn'] = @LDAP::fix($data['dn']);
+ }
+
$smarty = get_smarty();
$smarty->assign("ous",$this->get_all_people_ous());
$smarty->assign("method","outside_users");
- $smarty->assign("outside_users",$this->outside_users);
+ $smarty->assign("outside_users",$tmp);
$smarty->assign("user_details", $this->show_details);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
}
/* Display migration dialog */
if($this->users_migration_dialog){
+
+ /* Fix displayed dn syntax */
+ $tmp = $this->users_to_migrate;
+ foreach($tmp as $key => $data){
+ $tmp[$key]['dn'] = @LDAP::fix($data['dn']);
+ }
+
$smarty = get_smarty();
- $smarty->assign("users_to_migrate",$this->users_to_migrate);
+ $smarty->assign("users_to_migrate",$tmp);
$smarty->assign("method","migrate_users");
$smarty->assign("user_details", $this->show_details);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
/* Display migration dialog */
if($this->dep_migration_dialog){
$smarty = get_smarty();
- $smarty->assign("deps_to_migrate",$this->deps_to_migrate);
+
+ /* Fix displayed dn syntax */
+ $tmp = $this->deps_to_migrate;
+ foreach($tmp as $key => $data){
+ $tmp[$key]['dn'] = @LDAP::fix($data['dn']);
+ }
+
+ $smarty->assign("deps_to_migrate",$tmp);
$smarty->assign("method","migrate_deps");
$smarty->assign("deps_details", $this->show_details);
return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));