ideas for optimizations with large groups

Chris Wakelin c.d.wakelin at reading.ac.uk
Tue Feb 18 09:39:49 GMT 2003


I've just compiled the CVS version of 2.2.x and it seems to have fixed the 
problem. I'd been merrily patching each new version of Samba as it came out 
;-)

Thanks,
Chris

On Tue, 18 Feb 2003 06:10:42 +0000 jra at dp.samba.org wrote:

> On Wed, Mar 06, 2002 at 11:24:23AM +0000, Chris Wakelin wrote:
> > We had big problems with an upgrade to Samba 2.2.3a on Solaris 8 due 
> > to this groups change. Samba 2.2.2 was fine, but had occassional 
> > oplock problems (hence the desire to upgrade). We have a large number 
> > (~1000) of (sometimes large) NIS groups.
> > 
> > I've patched our version of Samba 2.2.3a in lib/util_getent.c 
> > get_users_in_group() commenting out the line :-
> > 
> > if (strchr(gname,*lp_winbind_separator())) {
> > 
> > (and the lines following the "if" statement) so that the old 
> > getgrnam() calls are used instead (as they are for winbindd).
> > 
> > This fixes the problem for us, but I'd like strongly to support 
> > David's suggestion that the change to using getgrent() be made a 
> > compile-time option for Tru64 only.
> 
> It took some time, but I finally got to this, sorry :-).
> 
> Jeremy.

--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--
Christopher Wakelin,                                c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,       Tel: +44 (0)118 378 6630
Whiteknights, Reading, RG6 2AF, UK                   Fax: +44 (0)118 975 3094



More information about the samba-technical mailing list