"; // 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!") . "

"); echo ("
\n"); // print host table echo "\n"; echo ""; echo ""; echo ""; echo "\n"; // print host list for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count" echo(""); echo (""); echo (""); echo("\n"); } echo ("
" . _("Host Name") . "RID
" . $info[$i]["cn"][0] . "" . $info[$i]["rid"][0] . "
"); echo ("

 

\n"); echo ("

 

\n"); echo (""); echo ("\n"); echo ("
"); echo (" "); echo (" 
\n"); echo ("
\n"); ?>