From 8fade663987ef4d592574cd2dd55a0ffa12abfb9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 8 Mar 2006 08:30:29 +0000 Subject: [PATCH] Added fix, to dislay more inforamtions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupGeneric.inc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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); -- 2.30.2