Date: Mon Feb 17 12:27:34 2003 Author: abartlet Update of /data/cvs/samba/source/printing In directory dp.samba.org:/tmp/cvs-serv24255/printing
Modified Files: nt_printing.c Log Message: This patch fixes one of my longest-standing pet hates with Samba :-). When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett Revisions: nt_printing.c 1.245 => 1.246 http://www.samba.org/cgi-bin/cvsweb/samba/source/printing/nt_printing.c?r1=1.245&r2=1.246