"; // 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); $info = ldap_get_entries($_SESSION["ldap"]->server, $sr); ldap_free_result($sr); // print host table header echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; // print host list for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count" echo(""); echo (""); echo (""); // create list of group members array_shift($info[$i]["memberuid"]); // delete count entry $grouplist = implode("; ", $info[$i]["memberuid"]); echo (""); echo (""); echo(""); } echo ("
" . _("Grup Name") . "" . _("GID Number") . "" . _("Group Members") . "" . _("Description") . "
" . $info[$i]["cn"][0] . "" . $info[$i]["gidnumber"][0] . "" . $grouplist . "" . $info[$i]["description"][0] . "
"); ?>