From d56d83818ed1b6f802da87332c2d7fba4a913e80 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 10 Jul 2007 06:56:54 +0000 Subject: [PATCH] Updated migration git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6792 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Migrate.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc index 1628e951b..42db9f8bb 100644 --- a/setup/class_setupStep_Migrate.inc +++ b/setup/class_setupStep_Migrate.inc @@ -364,8 +364,9 @@ class Step_Migrate extends setup_step return(false); } + $this->outside_groups = array(); while($attrs = $ldap->fetch()){ - $group_db_base = preg_replace("/^[^,]+,".normalizePreg($group_ou)."/","",$attrs['dn']); + $group_db_base = preg_replace("/^[^,]+,".normalizePreg($group_ou)."+,/i","",$attrs['dn']); /* Check if entry is not an addressbook only user * and verify that he is in a valid department @@ -440,7 +441,7 @@ class Step_Migrate extends setup_step } while($attrs = $ldap->fetch()){ - $people_db_base = preg_replace("/^[^,]+,".normalizePreg($people_ou)."/","",$attrs['dn']); + $people_db_base = preg_replace("/^[^,]+,".normalizePreg($people_ou)."/i","",$attrs['dn']); /* Check if entry is not an addressbook only user * and verify that he is in a valid department -- 2.30.2