Versions tested: 3.0.0, 3.0.1pre2 (CVS from Oct 28, 2003) Build environment: ================== LD_LIBRARY_PATH=/usr/local/lib:/usr/local/kerberos/lib export LD_LIBRARY_PATH PATH=/usr/ccs/bin:$PATH export PATH CC="gcc" \ CPPFLAGS="-I/usr/local/include" \ LDFLAGS="-L/usr/local/kerberos/lib -L/usr/local/lib - R/usr/local/lib:/usr/local/kerberos/lib \ ./configure \ --prefix=/usr/local/samba \ --with-krb5=/usr/local/kerberos \ --with-ldap \ --with-ads \ --with-libiconv \ --with-included-popt \ --with-pam gmake From my /etc/nsswitch.conf ========================== passwd: files ldap winbind With this setup, getent passwd lists users in /etc/passwd, then LDAP and dumps core when trying to get the first user from winbind backend. My /usr/local/samba/lib/smb.conf: ================================= [global] workgroup = VEGVESEN realm = VEGVESEN.NO server string = svvtest02 security = ADS preferred master = No domain master = No ldap ssl = no idmap uid = 20000-30000 idmap gid = 20000-30000 winbind separator = + [temp] comment = Temporary files path = /var/tmp read only = No Backtrace from core dump from 'getent passwd': ============================================== (gdb) bt full #0 0xff1c9c34 in nss_getent_u () from /usr/lib/libc.so.1 No symbol table info available. #1 0xff1c97c4 in nss_getent () from /usr/lib/libc.so.1 No symbol table info available. #2 0xff218754 in getpwent_r () from /usr/lib/libc.so.1 No symbol table info available. #3 0x0001140c in dogetpw () No symbol table info available. #4 0x00011278 in main () No symbol table info available.
Created attachment 228 [details] Source for test-program used to generate the core dump Short test program used to reproduce the error Compiled with: gcc -g -o pwent pwent.c
Backtrace of core dump from pwent test program (see attachment) (gdb) bt full #0 0xff2c9c34 in nss_getent_u () from /usr/lib/libc.so.1 No symbol table info available. #1 0xff2c97c4 in nss_getent () from /usr/lib/libc.so.1 No symbol table info available. #2 0xff318754 in getpwent_r () from /usr/lib/libc.so.1 No symbol table info available. #3 0x000106d0 in main (argc=1, argv=0xffbefd1c) at pwent.c:11 i = 42 pw = {pw_name = 0xffbef478 "", pw_passwd = 0xffbefc77 "", pw_uid = 10029, pw_gid = 5000, pw_age = 0xffbefc77 "", pw_comment = 0xffbefc77 "", pw_gecos = 0xffbef47f "", pw_dir = 0xffbef48e "", pw_shell = 0xffbef49b ""} buffer = '\0' <repeats 2047 times>
I'm fairly certain this is related to my bug "934"
nss_winbind has gotten several fixes for solaris since 3.0.0. please reopen if you can reproduce this bug against 3.0.2a. Thanks.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
database cleanup