";
// Samba hosts have the attribute "sambaAccount" and end with "$"
$filter = "(objectClass=posixGroup)";
$attrs = array("cn", "gidNumber", "memberUID", "description");
$sr = @ldap_search($_SESSION["ldap"]->server(),
$_SESSION["config"]->get_GroupSuffix(),
$filter, $attrs);
if ($sr) {
$info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
ldap_free_result($sr);
}
else echo ("
" . _("No Groups found!") . "
");
// print host table header
echo "
"; echo " | " . _("Grup Name") . " | "; echo "" . _("GID Number") . " | "; echo "" . _("Group Members") . " | "; echo "" . _("Description") . " | "; echo "
---|
 
\n"); echo (" 
\n"); echo (""); echo (" "); echo ("  |