samba4 winbind + freebsd 9

Luiz Gustavo dos S. Costa luizgustavo at mundounix.com.br
Mon Oct 29 21:47:00 MDT 2012


Hi list,

I can not work with winbind in freebsd, see configs....

# cd /usr/local/samba/lib; ln -s libnss_winbind.so.1 libnss_winbind.so
# echo '/usr/local/samba/lib' > /usr/local/libdata/ldconfig/samba4
# /etc/rc.d/ldconfig restart
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
/usr/local/samba/lib
32-bit compatibility ldconfig path: /usr/lib32
# ldconfig -r | grep winbind
        144:-lnss_winbind.1 => /usr/local/samba/lib/libnss_winbind.so.1

Change /etc/nsswitch.conf:

# cat /etc/nsswitch.conf
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: releng/9.1/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z dougb $
#
#group: compat
#group_compat: nis
group: files winbind
hosts: files dns
networks: files
#passwd: compat
#passwd_compat: nis
passwd: files winbind
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

Debugs ...

# /usr/local/samba/bin/wbinfo -t
checking the trust secret for domain MUNDOUNIX via RPC calls succeeded
# /usr/local/samba/bin/wbinfo -p
Ping to winbindd succeeded
# /usr/local/samba/bin/wbinfo -u
Administrator
Guest
krbtgt
dns-samba4
gugabsd
# /usr/local/samba/bin/wbinfo -i gugabsd
MUNDOUNIX\gugabsd:*:3000000:20::/home/MUNDOUNIX/gugabsd:/bin/false

Problems ...

# id gugabsd
id: gugabsd: no such user

# getent group
wheel:*:0:root,lgcosta
......
* only groups from system

Log messages of error:

root at samba4:/usr/local/samba # tail /var/log/debug.log
Oct 30 01:43:05 samba4 getent: NSSWITCH(_nsdispatch): winbind, passwd,
getpwent_r, not found, and no fallback provided
Oct 30 01:43:05 samba4 getent: NSSWITCH(_nsdispatch): winbind, passwd,
endpwent, not found, and no fallback provided
Oct 30 01:43:18 samba4 getent: NSSWITCH(_nsdispatch): winbind, group,
setgrent, not found, and no fallback provided
Oct 30 01:43:18 samba4 getent: NSSWITCH(_nsdispatch): winbind, group,
getgrent_r, not found, and no fallback provided
Oct 30 01:43:18 samba4 getent: NSSWITCH(_nsdispatch): winbind, group,
endgrent, not found, and no fallback provided
Oct 30 01:44:00 samba4 cron[31149]: NSSWITCH(_nsdispatch): winbind,
group, setgrent, not found, and no fallback provided
Oct 30 01:44:00 samba4 cron[31149]: NSSWITCH(_nsdispatch): winbind,
group, getgrent_r, not found, and no fallback provided
Oct 30 01:44:00 samba4 cron[31149]: NSSWITCH(_nsdispatch): winbind,
group, endgrent, not found, and no fallback provided
Oct 30 01:44:00 samba4 cron[31149]: NSSWITCH(_nsdispatch): winbind,
passwd, endpwent, not found, and no fallback provided
Oct 30 01:44:15 samba4 -csh: NSSWITCH(_nsdispatch): winbind, passwd,
endpwent, not found, and no fallback provided

what could I be doing wrong?

Very thanks !

Gustavo - gugabsd


More information about the samba-technical mailing list