From 46d030ad05c2c5aefb8d1f1cbe1983fa252feb86 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Jun 2007 06:22:59 +0000 Subject: [PATCH] Updated setup department migration, skip ou=mime Updated contib/gosa.conf to include glpi tabs Fixed snapshot base git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6621 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 25 ++++++++++++++++--------- include/class_plugin.inc | 10 +++++----- setup/class_setupStep_Migrate.inc | 2 +- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index cc6598841..a5287ab49 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -136,6 +136,7 @@ + @@ -144,6 +145,7 @@ + @@ -153,16 +155,29 @@ + + + + + + + + + + + + + {if $cv.mail == "kolab"} @@ -184,14 +199,6 @@ - - - - - - - - @@ -217,8 +224,8 @@ + diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 631a2d153..e613f4db9 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1093,7 +1093,7 @@ class plugin $server = $tmp['SNAPSHOT_SERVER']; $user = $tmp['SNAPSHOT_USER']; $password = $tmp['SNAPSHOT_PASSWORD']; - $snapldapbase = $tmp['SNAPSHOT_LDAP_BASE']; + $snapldapbase = $tmp['SNAPSHOT_BASE']; $ldap_to = new LDAP($user,$password, $server); $ldap_to -> cd($snapldapbase); @@ -1179,7 +1179,7 @@ class plugin /* check if all required vars are available to create a new ldap connection */ $missing = ""; - foreach(array("SNAPSHOT_SERVER","SNAPSHOT_USER","SNAPSHOT_PASSWORD","SNAPSHOT_LDAP_BASE") as $var){ + foreach(array("SNAPSHOT_SERVER","SNAPSHOT_USER","SNAPSHOT_PASSWORD","SNAPSHOT_BASE") as $var){ if(!isset($tmp[$var])){ $missing .= $var." "; print_red(sprintf(_("The snapshot functionality is enabled, but the required variable(s) '%s' is not configured in your gosa.conf."),$missing)); @@ -1211,7 +1211,7 @@ class plugin $server = $tmp['SNAPSHOT_SERVER']; $user = $tmp['SNAPSHOT_USER']; $password = $tmp['SNAPSHOT_PASSWORD']; - $snapldapbase = $tmp['SNAPSHOT_LDAP_BASE']; + $snapldapbase = $tmp['SNAPSHOT_BASE']; $ldap_to = new LDAP($user,$password, $server); $ldap_to -> cd ($snapldapbase); show_ldap_error($ldap->get_error(), sprintf(_("Method get available snapshots with dn '%s' failed."),$this->dn)); @@ -1267,7 +1267,7 @@ class plugin $server = $tmp['SNAPSHOT_SERVER']; $user = $tmp['SNAPSHOT_USER']; $password = $tmp['SNAPSHOT_PASSWORD']; - $snapldapbase = $tmp['SNAPSHOT_LDAP_BASE']; + $snapldapbase = $tmp['SNAPSHOT_BASE']; $ldap_to = new LDAP($user,$password, $server); $ldap_to->cd ($snapldapbase); show_ldap_error($ldap->get_error(), sprintf(_("Method get deleted snapshots with dn '%s' failed."),$this->dn)); @@ -1331,7 +1331,7 @@ class plugin $server = $tmp['SNAPSHOT_SERVER']; $user = $tmp['SNAPSHOT_USER']; $password = $tmp['SNAPSHOT_PASSWORD']; - $snapldapbase = $tmp['SNAPSHOT_LDAP_BASE']; + $snapldapbase = $tmp['SNAPSHOT_BASE']; $ldap_to = new LDAP($user,$password, $server); $ldap_to->cd ($snapldapbase); show_ldap_error($ldap->get_error(), sprintf(_("Restore snapshot with dn '%s' failed."),$snapldapbase)); diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc index 1773a678b..30897f3e2 100644 --- a/setup/class_setupStep_Migrate.inc +++ b/setup/class_setupStep_Migrate.inc @@ -674,7 +674,7 @@ class Step_Migrate extends setup_step /* 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=aclroles,/","/^ou=incoming,/", "/ou=snapshots,/","/(,|)dc=addressbook,/","/^(,|)ou=machineaccounts,/", "/(,|)ou=winstations,/"); -- 2.30.2