From: hickert Date: Wed, 12 May 2010 13:13:59 +0000 (+0000) Subject: Updated userRDN migrate X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba7cad860b9e743eb85432fc3c7196c7cafc38fb;p=gosa.git Updated userRDN migrate git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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