[patch] bug: winbind nss user/grouplist fails

Johann Hanne jhml at gmx.net
Thu Aug 18 13:55:53 GMT 2005


Hi,

there is a bug in winbind/nss: When there are MANY (1000+ here) users and
FEW (20 here) of them actually have a unix mapping (we use idmap_ad with
uidNumber attributes), listing the users ("getent passwd") and groups fails.

The reason is that winbindd_getpwent (nsswitch/winbindd_user.c) and
winbindd_getgrent (nsswitch/winbindd_group.c) fetch users/groups in chunks
of 250 by default. If there is no unix-mapped user among these, it will
fail. The attached patchs changes the behaviour to fetch users until there
are 250 users who have actually a unix-mapping.

Cheers, Johann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.20rc2-fix_winbind_userlist.diff
Type: application/octet-stream
Size: 1003 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20050818/6c8b258d/samba-3.0.20rc2-fix_winbind_userlist.obj


More information about the samba-technical mailing list