diff --git a/lam/lib/listgroups.php b/lam/lib/listgroups.php
index 11727e1f..715dd2ba 100644
--- a/lam/lib/listgroups.php
+++ b/lam/lib/listgroups.php
@@ -19,7 +19,7 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- This code displays a list of all Samba hosts.
+ This code displays a list of all groups.
*/
include_once ('../config/config.php');
@@ -57,7 +57,7 @@ else {
// Groups have the attribute "posixGroup"
$filter = "(objectClass=posixGroup)";
-$attrs = array("cn", "gidNumber", "memberUID", "description");
+$attrs = $attr_array;
$sr = @ldap_search($_SESSION["ldap"]->server(),
$_SESSION["config"]->get_GroupSuffix(),
$filter, $attrs);
@@ -70,17 +70,22 @@ else echo ("