From 84c533d2e974eee8c06886db5e730bbe3e5d43ef Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 May 2010 11:59:55 +0000 Subject: [PATCH] We no longer mograte admins accounts from 2.5 to 2.6 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18751 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Migrate.inc | 39 +-------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/gosa-core/setup/class_setupStep_Migrate.inc b/gosa-core/setup/class_setupStep_Migrate.inc index e352b10bd..2dc738586 100644 --- a/gosa-core/setup/class_setupStep_Migrate.inc +++ b/gosa-core/setup/class_setupStep_Migrate.inc @@ -187,7 +187,6 @@ class Step_Migrate extends setup_step $this->checks['acls']['ERROR_MSG'] = _("Possibly the 'root object' is missing."); }else{ $GOsa_26_found = false; // GOsa 2.6 Account found - $GOsa_25_found = false; // GOsa 2.5 Account found, allow migration $username = ""; $attrs = $ldap->fetch(); @@ -292,43 +291,7 @@ class Step_Migrate extends setup_step } } - /* Try to find an old GOsa 2.5 administrative account that may be migrated - */ - if(!$GOsa_26_found){ - $valid_users = ""; - $valid_groups = ""; - $ldap->cd($cv['base']); - $ldap->search("(&(objectClass=posixGroup)(gosaSubtreeACL=:all)(memberUid=*))",array("memberUid","cn")); - while($p_group = $ldap->fetch()){ - $val_users = ""; - for($e = 0 ; $e < $p_group['memberUid']['count'] ; $e ++ ){ - $user = $p_group['memberUid'][$e]; - if(isset($rusers[$user])){ - $val_users .= $user.", "; - } - } - if(!empty($val_users)){ - $valid_groups .= $groups[$p_group['dn']]."(".trim($val_users,", ")."), "; - $GOsa_25_found = TRUE; - } - } - } - - - /* Print out results - */ - if($GOsa_25_found){ - $str = ""; - if(!empty($valid_groups)){ - $str.= "".sprintf(_("GOsa 2.5 administrative accounts found: %s"),trim($valid_groups,", "))."
"; - } - $this->checks['acls']['STATUS'] = FALSE; - $this->checks['acls']['STATUS_MSG']= _("Failed"); - $this->checks['acls']['ERROR_MSG'] = $str; - $this->checks['acls']['ERROR_MSG'].= _("There is no valid GOsa 2.6 administrator account inside your LDAP.")." "; - $this->checks['acls']['ERROR_MSG'].= ""; - $this->checks['acls']['ERROR_MSG'].= ""; - }elseif($GOsa_26_found){ + if($GOsa_26_found){ $str = ""; if(!empty($valid_users)){ $str.= ""._("Users").": ".trim($valid_users,", ")."
"; -- 2.30.2