Code

Updated acl list index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jan 2007 05:48:32 +0000 (05:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jan 2007 05:48:32 +0000 (05:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5604 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/acl/class_aclManagement.inc

index 9d5757197620a6a26d2adb196534b955269b5148..9e33b9bb057b992b2a682a49ec21ca793727bcca 100644 (file)
@@ -316,7 +316,6 @@ class aclManagement extends plugin
 
   function reload()
   {
-    #FIXME  Implement regex objectClass and so on ... 
     /* Get divlist informations from filter part */
     $Regex      = $this->DivListACL -> Regex;
     $SubSearch  = $this->DivListACL -> SubSearch;
@@ -343,7 +342,7 @@ class aclManagement extends plugin
       $fetch_base   = $base;
       $tmp = get_list($Filter, "acl", $fetch_base, $Attrs, $Flags);
       foreach($tmp as $entry){
-        $res[$entry['dn']] = $entry;
+        $res[] = $entry;
       }
 
     }else{
@@ -360,7 +359,7 @@ class aclManagement extends plugin
         if($Type == "search"){
           $tmp = get_list($Filter, "acl", $fetch_base, $Attrs, $Flags);
           foreach($tmp as $entry){
-            $res[$entry['dn']] = $entry;
+            $res[] = $entry;
           }
         }else{
           $ldap->cat($fetch_base,$Attrs);
@@ -370,7 +369,7 @@ class aclManagement extends plugin
             if( (isset($attrs['cn'][0]) && preg_match("/".$re2."/i",$attrs['cn'][0]))
                |(isset($attrs['ou'][0]) && preg_match("/".$re2."/i",$attrs['ou'][0]))){
 
-              $res[$attrs['dn']] = $attrs;
+              $res[] = $attrs;
             }
           }
         }