Bug 9375 - winbind libraries for nsswitch not working
winbind libraries for nsswitch not working
Status: RESOLVED FIXED
Product: Samba 3.6
Classification: Unclassified
Component: Winbind
3.6.9
x64 Linux
: P5 major
: ---
Assigned To: Michael Adam
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-09 22:26 UTC by luish.felice
Modified: 2012-11-13 03:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luish.felice 2012-11-09 22:26:41 UTC
Dear Friend,

The system is AD integrated installed on Oracle Linux 6.3 x64

I just installed the version 3.6.9 from SerNet and whet I run the nsstest command the systems returns:

Can't open shared library /lib/libnss_winbind.so

So I notice that this library is in lib64, I did a symbolic link with 

ln -s /lib64/libnss_winbind.so /lib/libnss_winbind.so

and the nsstest returns:

Testing user administrator
getpwent:   administrator:*:10003:10003:Administrator:/home/CDDLASMERCEDES/administrator:/bin/false
getpwuid:   administrator:*:10003:10003:Administrator:/home/CDDLASMERCEDES/administrator:/bin/false
getpwnam:   administrator:*:10003:10003:Administrator:/home/CDDLASMERCEDES/administrator:/bin/false
*** glibc detected *** nsstest: realloc(): invalid next size: 0x00007fcbe9e7c080 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x3433275916)[0x7fcbe7534916]
/lib64/libc.so.6(+0x343327b317)[0x7fcbe753a317]
/lib64/libc.so.6(realloc+0xe5)[0x7fcbe753a4d5]
/lib/libnss_winbind.so(_nss_winbind_initgroups_dyn+0xfd)[0x7fcbe709a7ce]
nsstest(main+0x11e)[0x7fcbe82b4645]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fcbe74ddcdd]
nsstest(+0x1289)[0x7fcbe82b4289]
======= Memory map: ========
7fcbe6e81000-7fcbe6e97000 r-xp 00000000 08:02 1438997                    /lib64/libgcc_s-4.4.6-20120305.so.1
7fcbe6e97000-7fcbe7096000 ---p 00016000 08:02 1438997                    /lib64/libgcc_s-4.4.6-20120305.so.1
7fcbe7096000-7fcbe7097000 rw-p 00015000 08:02 1438997                    /lib64/libgcc_s-4.4.6-20120305.so.1
7fcbe7097000-7fcbe709c000 r-xp 00000000 08:02 1444641                    /lib64/libnss_winbind.so.2
7fcbe709c000-7fcbe729c000 ---p 00005000 08:02 1444641                    /lib64/libnss_winbind.so.2
7fcbe729c000-7fcbe729d000 rw-p 00005000 08:02 1444641                    /lib64/libnss_winbind.so.2
7fcbe729d000-7fcbe72a2000 rw-p 00000000 00:00 0 
7fcbe72a2000-7fcbe72b9000 r-xp 00000000 08:02 1438984                    /lib64/libpthread-2.12.so
7fcbe72b9000-7fcbe74b9000 ---p 00017000 08:02 1438984                    /lib64/libpthread-2.12.so
7fcbe74b9000-7fcbe74ba000 r--p 00017000 08:02 1438984                    /lib64/libpthread-2.12.so
7fcbe74ba000-7fcbe74bb000 rw-p 00018000 08:02 1438984                    /lib64/libpthread-2.12.so
7fcbe74bb000-7fcbe74bf000 rw-p 00000000 00:00 0 
7fcbe74bf000-7fcbe7648000 r-xp 00000000 08:02 1438983                    /lib64/libc-2.12.so
7fcbe7648000-7fcbe7848000 ---p 00189000 08:02 1438983                    /lib64/libc-2.12.so
7fcbe7848000-7fcbe784c000 r--p 00189000 08:02 1438983                    /lib64/libc-2.12.so
7fcbe784c000-7fcbe784d000 rw-p 0018d000 08:02 1438983                    /lib64/libc-2.12.so
7fcbe784d000-7fcbe7852000 rw-p 00000000 00:00 0 
7fcbe7852000-7fcbe7859000 r-xp 00000000 08:02 1439001                    /lib64/librt-2.12.so
7fcbe7859000-7fcbe7a58000 ---p 00007000 08:02 1439001                    /lib64/librt-2.12.so
7fcbe7a58000-7fcbe7a59000 r--p 00006000 08:02 1439001                    /lib64/librt-2.12.so
7fcbe7a59000-7fcbe7a5a000 rw-p 00007000 08:02 1439001                    /lib64/librt-2.12.so
7fcbe7a5a000-7fcbe7a5c000 r-xp 00000000 08:02 1438999                    /lib64/libdl-2.12.so
7fcbe7a5c000-7fcbe7c5c000 ---p 00002000 08:02 1438999                    /lib64/libdl-2.12.so
7fcbe7c5c000-7fcbe7c5d000 r--p 00002000 08:02 1438999                    /lib64/libdl-2.12.so
7fcbe7c5d000-7fcbe7c5e000 rw-p 00003000 08:02 1438999                    /lib64/libdl-2.12.so
7fcbe7c5e000-7fcbe7c74000 r-xp 00000000 08:02 1439007                    /lib64/libnsl-2.12.so
7fcbe7c74000-7fcbe7e73000 ---p 00016000 08:02 1439007                    /lib64/libnsl-2.12.so
7fcbe7e73000-7fcbe7e74000 r--p 00015000 08:02 1439007                    /lib64/libnsl-2.12.so
7fcbe7e74000-7fcbe7e75000 rw-p 00016000 08:02 1439007                    /lib64/libnsl-2.12.so
7fcbe7e75000-7fcbe7e77000 rw-p 00000000 00:00 0 
7fcbe7e77000-7fcbe7e8d000 r-xp 00000000 08:02 1439078                    /lib64/libresolv-2.12.so
7fcbe7e8d000-7fcbe808d000 ---p 00016000 08:02 1439078                    /lib64/libresolv-2.12.so
7fcbe808d000-7fcbe808e000 r--p 00016000 08:02 1439078                    /lib64/libresolv-2.12.so
7fcbe808e000-7fcbe808f000 rw-p 00017000 08:02 1439078                    /lib64/libresolv-2.12.so
7fcbe808f000-7fcbe8091000 rw-p 00000000 00:00 0 
7fcbe8091000-7fcbe80b1000 r-xp 00000000 08:02 1438978                    /lib64/ld-2.12.so
7fcbe8252000-7fcbe82a6000 rw-p 00000000 00:00 0 
7fcbe82ad000-7fcbe82b0000 rw-p 00000000 00:00 0 
7fcbe82b0000-7fcbe82b1000 r--p 0001f000 08:02 1438978                    /lib64/ld-2.12.so
7fcbe82b1000-7fcbe82b2000 rw-p 00020000 08:02 1438978                    /lib64/ld-2.12.so
7fcbe82b2000-7fcbe82b3000 rw-p 00000000 00:00 0 
7fcbe82b3000-7fcbe82b6000 r-xp 00000000 08:02 281098                     /usr/bin/nsstest
7fcbe84b5000-7fcbe84b6000 r--p 00002000 08:02 281098                     /usr/bin/nsstest
7fcbe84b6000-7fcbe84b7000 rw-p 00003000 08:02 281098                     /usr/bin/nsstest
7fcbe84b7000-7fcbe84b8000 rw-p 00000000 00:00 0 
7fcbe9e7c000-7fcbe9e9d000 rw-p 00000000 00:00 0                          [heap]
7fffff605000-7fffff626000 rw-p 00000000 00:00 0                          [stack]
7fffff644000-7fffff645000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
initgroups: Aborted (core dumped)

The command getent group returns only the linux groups but getent passwd returns all AD users plus the linux users

It is impossible to me to make the ACLs to work, it fails continuously.
Comment 1 luish.felice 2012-11-13 03:50:15 UTC
I reinstalled samba3 packages and now everything seems to work fine.