";
// Samba hosts have the attribute "sambaAccount" and end with "$"
$filter = "(&(objectClass=sambaAccount) (uid=*$))";
$attrs = array("cn", "rid");
$sr = @ldap_search($_SESSION["ldap"]->server(),
	$_SESSION["config"]->get_HostSuffix(),
	$filter, $attrs);
if ($sr) {
	$info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
	ldap_free_result($sr);
}
else echo ("
" . _("No Samba Hosts found!") . "
");
// print host table
echo "
| " . _("Host Name") . ""; echo " | RID"; echo " | 
|---|---|
| " . $info[$i]["cn"][0] . ""); echo (" | " . $info[$i]["rid"][0] . ""); echo(" |