diff --git a/lam/templates/main.php b/lam/templates/main.php index d608e921..0f8a1647 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -49,7 +49,7 @@ $new_suffs = array(); // get list of active types $types = $_SESSION['config']->get_ActiveTypes(); for ($i = 0; $i < sizeof($types); $i++) { - $info = @ldap_search($_SESSION['ldap']->server(), escapeDN($conf->get_Suffix($types[$i])), "(objectClass=*)", array('objectClass'), 0, 0, 0, LDAP_DEREF_NEVER); + $info = @ldap_read($_SESSION['ldap']->server(), escapeDN($conf->get_Suffix($types[$i])), "(objectClass=*)", array('objectClass'), 0, 0, 0, LDAP_DEREF_NEVER); $res = @ldap_get_entries($_SESSION['ldap']->server(), $info); if (!$res && !in_array($conf->get_Suffix($types[$i]), $new_suffs)) $new_suffs[] = $conf->get_Suffix($types[$i]); }