Hello list,
when using "wbinfo -S <sid>" at one point it uses three times a
timeout
of 5 seconds.
where is that configured, how can I increase it? Here are the details:
we are using version 3.0.22 under Linux. winbind uses an ldap backend
to store
the idmap. There are about 20000 user and group account. Sometimes
the timeout of 5 seconds is too short.
Running strace on this command I see at the end:
> lstat64("/var/locks/winbindd_privileged/pipe",
{st_mode=S_IFSOCK|0777,
> st_size=0, ...}) = 0
> socket(PF_FILE, SOCK_STREAM, 0) = 4
> fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> fcntl64(4, F_GETFD) = 0
> fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> connect(4, {sa_family=AF_FILE,
> path="/var/locks/winbindd_privileged/pipe"}, 110) = 0
> close(3) = 0
> select(5, [4], NULL, NULL, {0, 0}) = 0 (Timeout)
> write(4,
",\7\0\0\24\0\0\0\1\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1836) = 1836
> select(5, [4], NULL, NULL, {5, 0}) = 1 (in [4], left {5, 0})
This function uses the timeout of 5 seconds. This time it was successful,
but when it does not succeed it is tried again.> read(4,
"\24\5\0\0\2\0\0\0\241`\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 1300) = 1300
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 5), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7e2a000
> write(1, "24737\n", 6) = 6
> munmap(0xb7e2a000, 4096) = 0
> exit_group(0) = ?
In include/local.h I see:
/* Tuning for server auth mutex. */
#define CLI_AUTH_TIMEOUT 5000 /* In milli-seconds. */
#define NUM_CLI_AUTH_CONNECT_RETRIES 3
/* Number in seconds to wait for the mutex. This must be less than 30
seconds. */
#define SERVER_MUTEX_WAIT_TIME ( ((NUM_CLI_AUTH_CONNECT_RETRIES) *
((CLI_AUTH_TIMEOUT)/1000)) + 5)
Which looks like these are exactly the values I was looking for, but
I increased those values and recompiled wbinfo, but it didn't make
a difference. Also there is an smb.conf option "ldap timeout" but
setting this also does not change it.
The questions now is what setting is responsible for the timeout
seen above? Is it a runtime option, or if not, what part of
samba do I have to recompile? Or is it even a system option?
Thanks for your attention,
Peter