Code

Set scope correctly
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 11:53:35 +0000 (11:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 11:53:35 +0000 (11:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18819 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc

index 996eaa34361e495512160ffc8b15890c10043f20..02c74dd503f3d87a77fcc12fe650c5bf6ffff9e8 100644 (file)
@@ -87,6 +87,7 @@ class DynamicLdapGroup extends plugin
             if(!in_array($scope,array('base','one','sub'))) continue;
 
             // Append parsed uri
+            $scope = array_search($scope,$this->scopes);
             $this->labeledURIparsed[] = array('base' => $base, 'attr' => $attr, 'scope' => $scope,'filter' => $filter);
         }
    
@@ -196,7 +197,7 @@ class DynamicLdapGroup extends plugin
                 array(
                         'base' => 'ldap:///'.$this->dn,
                         'attr' => 'memberUid', 
-                        'scope' => 'sub',
+                        'scope' => 2,
                         'filter' => 'objectClass=posixGroup');
         }