3.0.23c breaks "getent passwd"

Klein, Roman roman.klein at de.astellas.com
Tue Sep 12 12:32:24 GMT 2006


Have you set
winbind enum users
winbind enum groups
to yes in smb.conf ?

Regards
Roman

-----Original Message-----
From: Matthew Mastracci [mailto:matthew at mastracci.com] 
Sent: Dienstag, 12. September 2006 04:15
To: samba-technical at lists.samba.org
Subject: 3.0.23c breaks "getent passwd"

After testing with 3.0.23c for a while, the only problem I've found that
"getent passwd" no longer lists all the winbind users.

The strange thing is that "getent passwd username" gets the proper entry and
both "wbinfo -u" and "wbinfo -g" list the correct users and groups. 
  PAM works great too.  Running strace on getent passwd indicates that
winbind is actually being consulted:

connect(5, {sa_family=AF_FILE,
path="/var/lib/samba/winbindd_privileged/pipe"}, 110) = 0
close(4)                                = 0
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, "8\7\0\0\6\0\0\0L\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1848) = 1848
select(6, [5], NULL, NULL, {5, 0})      = 1 (in [5], left {5, 0})
read(5, "\250\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
3240) = 3240
close(3)                                = 0
munmap(0xb7f0a000, 4096)                = 0
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, "8\7\0\0\7\0\0\0L\34\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1848) = 1848
select(6, [5], NULL, NULL, {5, 0})      = 1 (in [5], left {5, 0})
read(5, "\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
exit_group(0)                           = ?

I built my 3.0.23c package from the RHEL makerpms.sh on Fedora Core 5 (I've
been using this for some time now without problems), so I don't think this is
a factor.

Any clues for possible debugging?  It appears to be either within the NSS
library or Winbind.




Astellas Pharma Inc., Japan is the parent company of the Astellas Pharma group of companies, formed from the merger of Yamanouchi Pharmaceutical Co., Ltd and Fujisawa Pharmaceutical Co., Ltd




More information about the samba-technical mailing list