Samba4 nmbd/smbd/winbindd

Günter Kukkukk linux at kukkukk.com
Sun Aug 26 19:44:19 MDT 2012


Am Sonntag, 26. August 2012, 22:24:44 schrieb Marc Muehlfeld:
> Am 26.08.2012 18:36, schrieb Rowland Penny:
> >> I'm sure you have, but just to be safe, winbind for both passwd and
> >> group in nsswitch.conf with nscd turned off.
> > 
> > Hi Steve, yes, yes and I do not have nscd installed.
> 
> I don't know if this is still required for s4, too, but have you copied
> nsswitch/libnss_winbind.so to e. g. /lib and run ldconfig?
> 
> 
> Regards,
> Marc

With the WAF build, do _not_ use copy, when you want to make
/lib/libbnss_winbind.so.2 available to the system!
You might forget this copy after a new samba4 update - and then
run into failure:

During install additional version info is placed into every s4 dynlink
library - and libnss_winbind.so.2 now contains a new external reference to
libwinbind-client.so (which the s3 build does not have): 

ldd /lib/libnss_winbind.so.2 
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7763000)
        libwinbind-client.so => /usr/local/samba/lib/private/libwinbind-client.so (0xb775f000)  !!!
        libc.so.6 => /lib/libc.so.6 (0xb75f2000)
        /lib/ld-linux.so.2 (0xb77a4000)
So when you forget that copy after a new install (or "make install" from source),
the version info will no longer match!
-----------
Failing example:
ldd /lib/libnss_winbind.so.2
/lib/libnss_winbind.so.2: /usr/local/samba/lib/private/libwinbind-client.so: version `SAMBA_4.0.0ALPHA22_GIT_0110623' not found 
(required by /lib/libnss_winbind.so.2)
-----------

From many years samba3 practice i also used copy to place that
dynlib into /lib/ - and failed badly some days ago.

My opensuse 12.1 box was not booting anymore into the KDE4 desktop (init 5).
KDM and even the "man" (manual page) command was failing with:
Inconsistency detected by ld.so: dl-open.c: 596: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' 
failed!

It took me hours to find that failing /lib/libnss_winbind.so.2

So one should use symbolic links - as already posted in this thread.

Possibly this will change in the future.

Cheers, Günter


More information about the samba-technical mailing list