From: hickert Date: Wed, 8 Mar 2006 08:17:37 +0000 (+0000) Subject: Fixed search filter, to allow department selection again X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c167f30fa6bd5d1666e2e095d601764ed46be96d;p=gosa.git Fixed search filter, to allow department selection again git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2820 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index ef3a41949..ba328fccf 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -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])){