$result=ldap_search($adconn, $LDAP['dn'], $filter, $att);
if ($result) {
$info = ldap_get_entries($adconn, $result);
print $info["count"]." entries returned";
} else
print "LDAP search error ".ldap_errno($adconn)." (".ldap_error($adconn).")";