Glibc 2.3.2 is buggy and you need to set system_glibc_cant_guess_maxgroups to the maximum number of groups for a single user.
system_glibc_cant_guess_maxgroups