Code

Fixed search filter, to allow department selection again
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Mar 2006 08:17:37 +0000 (08:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Mar 2006 08:17:37 +0000 (08:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2820 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

index ef3a41949f5e6168bea67bae91655eaa2ade52e3..ba328fccfd1bc5d1dd564c013e3e7b76b5f2784c 100644 (file)
@@ -401,7 +401,8 @@ class group extends plugin
     $gufilter= get_global("gufilter");
 
     $ldap->cd ($this->config->current['BASE']);
-    $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))",array("uid", "sn", "givenName"));
+    $ldap->cd (get_people_ou().$gufilter['dselect']);
+    $ldap->ls ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))",get_people_ou().$gufilter['dselect'],array("uid", "sn", "givenName"));
     $this->allusers= array();
     while ($attrs= $ldap->fetch()){
       if (isset($attrs["givenName"][0]) && isset($attrs["sn"][0])){