Code

Fixed ldif import, attributes like this 'macAdress: 00:00:00:00:00:00' wasn't importe...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 06:36:53 +0000 (06:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 06:36:53 +0000 (06:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3862 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index d79ef172c56dbb7e9dcb41bb1e35e10a301b0f14..dbcfc24d6f1b359057f2bfe211f50575f0bc9d48 100644 (file)
@@ -1062,6 +1062,9 @@ class LDAP{
         $attr[0]= trim($attr[0]);  /* attribute */
         $attr[1]= trim($attr[1]);  /* value */
 
+        $attr[0] = trim( preg_replace("/:.*$/","",$row));
+        $attr[1] = trim( preg_replace("/^".$attr[0]."[ ::]/","",$row));
+
         /* Check for attributes that are used more than once */
         if(!isset($data[$attr[0]])) {
           $data[$attr[0]]=$attr[1];