From: hickert Date: Fri, 20 Jan 2006 11:43:48 +0000 (+0000) Subject: Updated Group list X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b59143b6088d401441caf455308ff08b99d6f974;p=gosa.git Updated Group list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2538 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 6319ee80f..d83e1b7a6 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -144,14 +144,14 @@ class LDAP{ } } - function ls($filter = "(objectclass=*)", $basedn = "") + function ls($filter = "(objectclass=*)", $basedn = "",$attrs = array("*")) { if($this->hascon){ if ($this->reconnect) $this->connect(); $this->clearResult(); if ($basedn == "") $basedn = $this->basedn; - $this->sr = @ldap_list($this->cid, $basedn, $filter); + $this->sr = @ldap_list($this->cid, $basedn, $filter,$attrs); $this->error = @ldap_error($this->cid); $this->resetResult(); $this->hasres=true; diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 64a49bf18..3557ccf66 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -374,7 +374,7 @@ class group extends plugin $gufilter= get_global("gufilter"); $ldap->cd ($gufilter['dselect']); - $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))", array("uid", "sn", "givenName")); + $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])){