From ba7cad860b9e743eb85432fc3c7196c7cafc38fb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 May 2010 13:13:59 +0000 Subject: [PATCH] Updated userRDN migrate git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_migrate_userRDN.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_migrate_userRDN.inc b/gosa-core/include/class_migrate_userRDN.inc index 8fc163aac..169039784 100644 --- a/gosa-core/include/class_migrate_userRDN.inc +++ b/gosa-core/include/class_migrate_userRDN.inc @@ -27,9 +27,13 @@ class migrate_userRDN implements propertyMigration $targetValue = $this->property->getValue(TRUE); $dnMatch = ""; if(!empty($initialValue)){ - list($namingAttrs, $container) = preg_split("/=/",$initialValue,2); - $container = trim($container,', '); - $dnMatch = "({$namingAttrs}:dn:={$container})"; + + foreach(preg_split("/,/", $initialValue) as $rdnPart){ + if(empty($rdnPart)) continue; + list($namingAttrs, $container) = preg_split("/=/",$rdnPart,2); + $container = trim($container,', '); + $dnMatch.= "({$namingAttrs}:dn:={$container})"; + } } // Search for users -- 2.30.2