From: hickert Date: Wed, 8 Mar 2006 08:30:29 +0000 (+0000) Subject: Added fix, to dislay more inforamtions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fade663987ef4d592574cd2dd55a0ffa12abfb9;p=gosa.git Added fix, to dislay more inforamtions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index ba328fccf..d3e408871 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -421,7 +421,21 @@ class group extends plugin if (isset($this->allusers[$value])){ $this->members[$value]= $this->allusers[$value]; } else { - $this->members[$value]= "[$value]"; + $ldap->cd($this->config->current['BASE']); + $ldap->search("(&(objectClass=gosaAccount)(uid=".$value."))",array("uid", "sn","givenName")); + $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]."]"; + } else { + $this->allusers[$attrs["uid"][0]]= $attrs['uid'][0]; + } + if (isset($this->allusers[$value])){ + $this->members[$value]= $this->allusers[$value]; + } else { + $this->members[$value] = "[".$value."]"; + } } } asort($this->members);