ldapsearch -E pr=500/noprompt -v -x -LLL -h host:port -D account -w password -b "DC=base,DC=dn" -s sub "(objectClass=user)"
-E pr=500/noprompt : 500 results per page, no prompt
-E pr=1000/prompt : 1000 results per page, show prompt
Source: Getting around Active Directory search size limit via ldapsearch