Tune-Up for getpw... Fix for Samba looking up hostnames in passwd NIS map

Richard Bollinger rabollinger at home.com
Tue Dec 19 02:03:11 GMT 2000

Replying to my own email (
http://lists.samba.org/pipermail/samba-technical/2000-December/010403.html )
, the attached revised patch provides caching of getpwnam() and getpwuid()
calls and avoid the excess calls also noted in a prior message entitled
[Fwd: Samba looking up hostnames in passwd NIS map??] (
http://lists.samba.org/pipermail/samba-technical/2000-December/010344.html )

The calls to getpwnam() with the share name and remote machine name are
apparently a documented side effect of using "security=share" (see the
manual page for smb.conf); but should _not_ occur with other security
options such as "security=domain" or "security=user".

----- Original Message -----
From: "Richard Bollinger" <rabollinger at home.com>
To: <samba-technical at samba.org>
Cc: <jra at samba.org>
Sent: Monday, December 11, 2000 7:57 PM
Subject: Tune-Up for getpw... in 2.2.0-alpha1

> Tracing smbd (CVS version 2.2.0-alpha1) reveals that connecting to a given
> share results in numerous avoidable calls to getpwnam()...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: speed_getpw.patch
Type: application/octet-stream
Size: 3012 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20001218/fd507393/speed_getpw.obj

More information about the samba-technical mailing list