Samba and groups > 16
Jeremy Allison
jra at samba.org
Tue Mar 1 17:10:55 GMT 2005
On Tue, Mar 01, 2005 at 10:43:27AM -0500, David Collier-Brown wrote:
> Solaris supports getgroups, and I see tests in
> ./testsuite/nsswitch/initgroups.c
> which use it to find the number of groups so we can get them all,
> but the code in source/lib/system_smbd.c finds the number of
> groups, but then then uses initgroups() which has a hard limit!
>
> Am I reading this correctly ???
initgroups is the only function that queries the system for
the known list of groups for this user. getgroups/setgroups
only get/set a known list. You have to use initgroups in
order to first populate the list you get with getgroups.
Jeremy.
More information about the samba-technical
mailing list