winbind: Test wbinfo -u with more than 1000 users
authorVolker Lendecke <vl@samba.org>
Thu, 27 Apr 2023 10:25:24 +0000 (12:25 +0200)
committerJule Anger <janger@samba.org>
Fri, 12 May 2023 15:05:18 +0000 (15:05 +0000)
commit97c9f812fa9f246fbedebcb28fcf875ec6679709
tree1ee3e2e3dc4798a6adafffbe2c20d15d55e44128
parent128a80758fd389333f2ab30981a5fe626d01e434
winbind: Test wbinfo -u with more than 1000 users

winbind asks dcerpc_samr_LookupRids in one batch, where samr.idl has

NTSTATUS samr_LookupRids(
[in,ref]      policy_handle *domain_handle,
[in,range(0,1000)] uint32 num_rids,
[in,size_is(1000),length_is(num_rids)] uint32 rids[],
[out,ref]     lsa_Strings *names,
[out,ref]     samr_Ids *types
);

limiting num_rids to 1000 entries. Test this.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15366

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit f633389f36e79d3e772777ad7ca13012e3616273)
selftest/knownfail.d/wbinfo_u_large_ad [new file with mode: 0644]
source3/script/tests/test_wbinfo_u_large_ad.sh [new file with mode: 0755]
source4/selftest/tests.py