Web lists-archives.com

Re: [Samba] net ads and wbinfo are painfully slow -- but they work




On Wed, 1 Feb 2017 07:30:19 -0800
Chris Stankevitz <chrisstankevitz@xxxxxxxxx> wrote:

> On Wed, Feb 1, 2017 at 1:12 AM, Rowland Penny via samba
> <samba@xxxxxxxxxxxxxxx> wrote:
> > He is also unlikely to be running avahi, he is using Freebsd 10.3
> 
> truss (like strace) showed that wbinfo, net, and sshd were all hanging
> after system calls to getuid() and getpid().  At the time I thought it
> was those calls that were slow but today I realize (although I don't
> have access to the system today) that the slowdown was *after*
> getuid()/getpid().
> 
> My suspicion is that "passwd: files winbind" is causing some low level
> function to be very slow although I'm not sure which one yet.
> 
> Chris

There is definitely something strange going on here, if I flush
the winbind cache, then ask for a users info with getent, I get this:

time getent passwd rowland
rowland:*:10000:10000:Rowland Penny:/home/rowland:/bin/bash

real	0m0.054s
user	0m0.004s
sys	0m0.000s

then if I ask for it again:

real	0m0.001s
user	0m0.000s
sys	0m0.000s

is PAM set up correctly ?

Rowland



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba