[Samba] getent and wbinfo not returning expected results?

Doug Sampson dougs at dawnsign.com
Fri Sep 16 21:02:43 GMT 2005


> If 'wbinfo -u' returns the domain user list, but 'getent 
> passwd' does not, 
> this means that NSS is not working. It has nothing to do with PAM.
> 
> >
> > I'm using FreeBSD and their NSS libraries are different 
> from Linux's and
> > I'm wondering if that is the cause. FreeBSD uses 
> nss_winbind.so.1 whereas
> > there are numerous references to libnss_winbind.so.2 in 
> TOSHARG which is
> > based on Linux. I fear FreeBSD's GCC compiler is either older and/or
> > different than Linux's. What distro are you using?
> 
> Have you joined the Samba server to the domain? 
> What do 'net rpc info' and 'net ads info' report?

aries-root@/usr/local/etc: net rpc info
Domain Name: DSP
Domain SID: S-1-5-21-2008768363-1786319642-1659389152
Sequence number: 15618
Num users: 124
Num domain groups: 16
Num local groups: 1

> Is winbindd running?

aries-root@/usr/local/etc: ps aux | grep winbind
root   8276  0.0  0.3  4644  2884  ??  Ss   12:26PM   0:00.01 winbindd -d4
root   8277  0.0  0.3  4584  2836  ??  I    12:26PM   0:00.01 winbindd -d4

> 
> Did you rename the libnss_winbind.so.2 file to nss_winbind.so.1?
> Did you locate this in the /lib or the /usr/lib directory?
> 
> What error logs are you seeing in /var/adm/messages?

On my FreeBSD machine, the log is located at /var/log/messages:

Sep 16 12:26:21 aries winbindd[8277]: [2005/09/16 12:26:21, 0]
rpc_client/cli_pipe.c:cli_rpc_open_noauth(1700)
Sep 16 12:26:21 aries winbindd[8277]:   rpc_pipe_bind failed
Sep 16 12:26:25 aries nmbd[8278]: [2005/09/16 12:26:25, 0]
nmbd/nmbd.c:main(737)
Sep 16 12:26:25 aries nmbd[8278]:   standard input is not a socket, assuming
-D option
Sep 16 12:26:25 aries smbd[8280]: [2005/09/16 12:26:25, 0]
passdb/pdb_tdb.c:tdbsam_tdbopen(195)
Sep 16 12:26:25 aries smbd[8280]:   Unable to open/create TDB passwd
Sep 16 12:26:25 aries smbd[8280]: [2005/09/16 12:26:25, 0]
passdb/pdb_tdb.c:tdbsam_getsampwrid(488)
Sep 16 12:26:25 aries smbd[8280]:   pdb_getsampwrid: Unable to open TDB rid
database!
Sep 16 12:26:25 aries smbd[8280]: NSSWITCH(nsparser): /etc/nsswitch.conf
line 1: 'compat' used with other sources
Sep 16 12:26:25 aries smbd[8280]: NSSWITCH(nsparser): /etc/nsswitch.conf
line 2: 'compat' used with other sources
Sep 16 12:26:25 aries smbd[8280]: NSSWITCH(nss_load_module): wins, Undefined
symbol "nss_module_register"
Sep 16 12:26:25 aries smbd[8280]: [2005/09/16 12:26:25, 0]
smbd/server.c:main(839)
Sep 16 12:26:25 aries smbd[8280]:   standard input is not a socket, assuming
-D option
Sep 16 12:26:29 aries ps: NSSWITCH(nsparser): /etc/nsswitch.conf line 1:
'compat' used with other sources
Sep 16 12:26:29 aries ps: NSSWITCH(nsparser): /etc/nsswitch.conf line 2:
'compat' used with other sources
Sep 16 12:26:29 aries ps: NSSWITCH(nss_load_module): wins, Undefined symbol
"nss_module_register"
Sep 16 12:26:51 aries getent: NSSWITCH(nsparser): /etc/nsswitch.conf line 1:
'compat' used with other sources
Sep 16 12:26:51 aries getent: NSSWITCH(nsparser): /etc/nsswitch.conf line 2:
'compat' used with other sources
Sep 16 12:26:51 aries getent: NSSWITCH(nss_load_module): wins, Undefined
symbol "nss_module_register"
Sep 16 13:00:00 aries newsyslog: NSSWITCH(nsparser): /etc/nsswitch.conf line
1: 'compat' used with other sources
Sep 16 13:00:00 aries newsyslog: NSSWITCH(nsparser): /etc/nsswitch.conf line
2: 'compat' used with other sources
Sep 16 13:00:00 aries newsyslog: NSSWITCH(nss_load_module): wins, Undefined
symbol "nss_module_register"
Sep 16 13:06:07 aries ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 1:
'compat' used with other sources
Sep 16 13:06:07 aries ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 2:
'compat' used with other sources
Sep 16 13:06:07 aries ls: NSSWITCH(nss_load_module): wins, Undefined symbol
"nss_module_register"
Sep 16 13:07:08 aries ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 1:
'compat' used with other sources
Sep 16 13:07:08 aries ls: NSSWITCH(nsparser): /etc/nsswitch.conf line 2:
'compat' used with other sources
Sep 16 13:07:08 aries ls: NSSWITCH(nss_load_module): wins, Undefined symbol
"nss_module_register"
Sep 16 13:26:32 aries ps: NSSWITCH(nsparser): /etc/nsswitch.conf line 1:
'compat' used with other sources
Sep 16 13:26:32 aries ps: NSSWITCH(nsparser): /etc/nsswitch.conf line 2:
'compat' used with other sources
Sep 16 13:26:32 aries ps: NSSWITCH(nss_load_module): wins, Undefined symbol
"nss_module_register"

aries-root@/usr/local/etc: ll /usr/local/lib/*win*
lrwxr-xr-x  1 root  wheel      31 Sep 15 12:27
/usr/local/lib/libnss_winbind.so -> /usr/local/lib/nss_winbind.so.1
lrwxr-xr-x  1 root  wheel      14 Sep 15 13:29
/usr/local/lib/libnss_winbind.so.1 -> nss_winbind.so
lrwxr-xr-x  1 root  wheel      14 Sep 15 13:30
/usr/local/lib/libnss_winbind.so.2 -> nss_winbind.so
lrwxr-xr-x  1 root  wheel      11 Sep 15 13:30
/usr/local/lib/libnss_wins.so.1 -> nss_wins.so
lrwxr-xr-x  1 root  wheel      11 Sep 15 13:30
/usr/local/lib/libnss_wins.so.2 -> nss_wins.so
-rwxr-xr-x  1 root  wheel   23057 Sep 15 13:28 /usr/local/lib/nss_winbind.so
lrwxr-xr-x  1 root  wheel      14 Sep 15 13:29
/usr/local/lib/nss_winbind.so.1 -> nss_winbind.so
lrwxr-xr-x  1 root  wheel      14 Sep 15 13:30
/usr/local/lib/nss_winbind.so.2 -> nss_winbind.so
-rwxr-xr-x  1 root  wheel  813451 Sep 15 13:28 /usr/local/lib/nss_wins.so
lrwxr-xr-x  1 root  wheel      11 Sep 15 13:30 /usr/local/lib/nss_wins.so.1
-> nss_wins.so
lrwxr-xr-x  1 root  wheel      11 Sep 15 13:30 /usr/local/lib/nss_wins.so.2
-> nss_wins.so
-r-xr-xr-x  1 root  wheel   15164 Sep 15 10:03 /usr/local/lib/pam_winbind.so

Does NSSWITCH follow symlinks?

Side note: Following a post in which a poster complained that when upgrading
Samba, his libraries weren't updated correctly so he has since then decided
to manually copy his libraries from the source directory to the library
path, I decided to do likewise. thus you are seeing files ending in .so as
source and links made to these source files. Perhaps that may have something
to do with the problems I am having with?

~Doug


More information about the samba mailing list