summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e04f2e)
raw | patch | inline | side by side (parent: 6e04f2e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Aug 2009 11:02:25 +0000 (11:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Aug 2009 11:02:25 +0000 (11:02 +0000) |
-It seems that we can have objects without both cn and uid....
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14104 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14104 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_acl.inc | patch | blob | history |
index b2e3ca093d46de39d83c8a7f659c99466443fce1..02d0a41a1b33d518c4ef6fa92231dc3098f7c2a5 100644 (file)
while ($attrs= $ldap->fetch()){
// Allow objects without cn to be listed without causing an error.
- if(!isset($attrs['uid'][0])){
+ if(!isset($attrs['cn'][0]) && isset($attrs['uid'][0])){
+ $this->users['U:'.$attrs['dn']]= $attrs['uid'][0];
+ }elseif(!isset($attrs['uid'][0]) && isset($attrs['cn'][0])){
$this->users['U:'.$attrs['dn']]= $attrs['cn'][0];
+ }elseif(!isset($attrs['uid'][0]) && !isset($attrs['cn'][0])){
+ $this->users['U:'.$attrs['dn']]= $attrs['dn'];
}else{
$this->users['U:'.$attrs['dn']]= $attrs['cn'][0].' ['.$attrs['uid'][0].']';
}