[Samba] getent passwd / wbinfo -u timeout

Bramsi Prenata bramsi.prenata at psn.co.id
Fri Mar 23 02:04:23 GMT 2007


dear all,

i have two server,

smb1 act as PDC
Debian 3.1
Samba 3.0.14a-Debian
OpenLDAP 2.3.32

smb2 act as fileserver auth to PDC via winbindd
FC3
Samba 3.0.24

the problems are :
i can get the groups and users when running getent passwd and getent group
from smb1.

but i just can get the groups when running getent group or wbinfo -g from
smb2. if i run getent passwd or wbinfo -u from smb2, it says the Error lookup
domain users. when i strace, it says timeout.

any idea what i should fix ?
helps is very appreciate.

here's the screen output

[root at fileserver ~]# /usr/local/samba-3.0.24/bin/wbinfo -u
Error looking up domain users
[root at fileserver ~]# 

[root at fileserver ~]# getent passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/shared/helpdesk:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
--- only linux user ---

[root at fileserver ~]# strace /usr/local/samba-3.0.24/bin/wbinfo -u
lstat64("/tmp/.winbindd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/tmp/.winbindd/pipe", {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_FILE, path="/tmp/.winbindd/pipe"}, 110) = 0
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "8\7\0\0\0\0\0\0\f}\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1848)
= 1848
select(4, [3], NULL, NULL, {5, 0})      = 1 (in [3], left {5, 0})
read(3, "\250\f\0\0\2\0\0\0\16\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 3240) =
3240
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "8\7\0\0&\0\0\0\f}\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1848) =
1848
select(4, [3], NULL, NULL, {5, 0})      = 1 (in [3], left {5, 0})
read(3, "\336\f\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 3240) =
3240
select(4, [3], NULL, NULL, {5, 0})      = 1 (in [3], left {5, 0})
read(3, "/usr/local/samba-3.0.24/var/lock"..., 54) = 54
lstat64("/usr/local/samba-3.0.24/var/locks/winbindd_privileged",
{st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat64("/usr/local/samba-3.0.24/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="/usr/local/samba-3.0.24/var/locks/winbindd_privileged/pipe"}, 110) = 0
close(3)                                = 0
select(5, [4], NULL, NULL, {0, 0})      = 0 (Timeout)
write(4, "8\7\0\0\20\0\0\0\f}\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1848)
= 1848
select(5, [4], NULL, NULL, {5, 0})      = 1 (in [4], left {5, 0})
read(4, "\250\f\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 3240) =
3240
stat64("/usr/local/samba-3.0.24/lib/en_US.UTF-8.msg", 0xfeea4580) = -1 ENOENT
(No such file or directory)
write(2, "Error looking up domain users\n", 30Error looking up domain users
) = 30
exit_group(1)                           = ?


thx.
:)


More information about the samba mailing list