traffic: add paged_results control for ldb search
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 18 Apr 2018 03:36:02 +0000 (15:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 12 May 2018 00:09:28 +0000 (02:09 +0200)
commit4d950527f3e68cff7fa7281f3266be0d81cc9bde
treed4b673a1f652fa368ad70b80beb660f5b4a02b22
parent2a4261c0527b803173a151bff3b35dbc687db707
traffic: add paged_results control for ldb search

While there are more then 1000 records in the search result from Windows,
a `LDAP_SIZE_LIMIT_EXCEEDED` error will be returned.

Add paged_results control to fix.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/emulate/traffic.py
python/samba/emulate/traffic_packets.py