diff --git a/lam/lib/listhosts.php b/lam/lib/listhosts.php index 3414c514..a8b38d75 100644 --- a/lam/lib/listhosts.php +++ b/lam/lib/listhosts.php @@ -35,7 +35,7 @@ $sr = ldap_search($_SESSION["ldap"]->server(), $_SESSION["config"]->get_HostSuffix(), $filter, $attrs); $info = ldap_get_entries($_SESSION["ldap"]->server, $sr); -ldap_free_result($sr); +//ldap_free_result($sr); // print host table echo "
" . _("Host Name") . " | "; echo "RID | "; echo "||
---|---|---|---|
" . $info["cn"][$i] . " | "); - echo ("" . $info["rid"][$i] . " | "); + echo ("" . $info[$i]["cn"][0] . " | "); + echo ("" . $info[$i]["rid"][0] . " | "); echo("