summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c167f30)
raw | patch | inline | side by side (parent: c167f30)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Mar 2006 08:30:29 +0000 (08:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Mar 2006 08:30:29 +0000 (08:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2821 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index ba328fccfd1bc5d1dd564c013e3e7b76b5f2784c..d3e40887177985a27f599eb8b9e453ba5aa795cf 100644 (file)
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);