Index: /trunk/roundcubemail/program/include/rcube_ldap.php
===================================================================
--- /trunk/roundcubemail/program/include/rcube_ldap.php	(revision 5852)
+++ /trunk/roundcubemail/program/include/rcube_ldap.php	(revision 5853)
@@ -555,5 +555,5 @@
         }
 
-        for ($i=0; $i < $entries["count"]; $i++)
+        for ($i=0; $i < $entries['count']; $i++)
         {
             $entry = $entries[$i];
@@ -565,4 +565,5 @@
             {
                 switch (strtolower($objectclass)) {
+                    case "group":
                     case "groupofnames":
                     case "kolabgroupofnames":
@@ -578,5 +579,5 @@
                 }
             }
-            
+
             if ($this->prop['sizelimit'] && count($group_members) > $this->prop['sizelimit'])
               break;
@@ -1539,4 +1540,5 @@
             for ($j=0; $j < $ldap_data[$i]['objectclass']['count']; $j++) {
                 switch (strtolower($ldap_data[$i]['objectclass'][$j])) {
+                    case 'group':
                     case 'groupofnames':
                     case 'kolabgroupofnames':
