Code

Fixed missing cn in group dialog member list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Mar 2006 09:19:20 +0000 (09:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Mar 2006 09:19:20 +0000 (09:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2803 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

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