ports/73868: problem with samba3 and /etc/nsswitch.conf

Alexandr Dubovikov shurik at start4.info
Fri Nov 12 14:00:46 UTC 2004

>Number:         73868
>Category:       ports
>Synopsis:       problem with samba3 and /etc/nsswitch.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 12 14:00:45 GMT 2004
>Originator:     Alexandr Dubovikov
>Release:        FreeBSD 5.3-STABLE i386
System: FreeBSD server.home.lan 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Oct 25 19:26:19 CEST 2004 shurik at winxp:/usr/src/sys/i386/compile/HOME i386

1.2Ghz processor (estimate).
CPU Model : Athlon (Thunderbird) [A4-A8]
512 RAM


Problem to start Samba3 with mysql passwd backend
if I have /etc/nsswitch.conf:

cat /etc/nsswitch.conf
passwd: files mysql
group:  files mysql

Samba try to find nss_files.so.1:

---------------- log.smbd ------------------------------------------------
[2004/11/12 14:36:22, 0] lib/module.c:do_smb_load_module(57)
  Error trying to resolve symbol 'init_module' in
/usr/local/lib/samba/pdb/mysql.so: Shared object "nss_files.so.1" not found, required by "smbd"
[2004/11/12 14:36:22, 0] passdb/pdb_interface.c:make_pdb_methods_name(664)
  No builtin nor plugin backend for mysql found
[2004/11/12 14:36:22, 1] passdb/pdb_interface.c:make_pdb_context_list(765)
  Loading mysql:mysql failed!


Install samba3 from /usr/ports/net/samba3 with mysql support. 
Install nss_mysql from /usr/ports/net/libnss-mysql 

create file /etc/nsswitch.conf :
cat /etc/nsswitch.conf
passwd: files mysql
group:  files mysql


       ln -s /lib/libm.so.3 /lib/nss_files.so.1 


       nss_files.so.1                    libm.so.3

More information about the freebsd-ports-bugs mailing list