"; // 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); $info = ldap_get_entries($_SESSION["ldap"]->server, $sr); ldap_free_result($sr); // print host table echo "
" . _("Host Name") . " | "; echo "RID | "; echo "
---|---|
" . $info[$i]["cn"][0] . " | "); echo ("" . $info[$i]["rid"][0] . " | "); echo("