s3: winbind: Remove fstring from wb_acct_info struct
authorSamuel Cabrero <scabrero@suse.de>
Tue, 30 Oct 2018 17:47:16 +0000 (18:47 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 1 Nov 2018 00:59:10 +0000 (01:59 +0100)
commit8d14714cc5e4c2b439e973faf602afb2fc1e7488
tree0a9019112d6eb8dde0e9aca730b435e8c57f3815
parent1b2de44ea8114cf2025e8b8c843131e2f2dbed27
s3: winbind: Remove fstring from wb_acct_info struct

The group enumeration backend functions try to allocate an array of
wb_acct_info structs with a number of elements equal to the number of
groups. In domains with a large number of groups this allocation may
fail due to the size of the chunk.

Found while trying to enumerate the groups in a domain with more than
700k groups.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/winbindd.h
source3/winbindd/winbindd_ads.c
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_rpc.c