Dennis Mathews
2005-Aug-22 09:36 UTC
[Samba] openldap with nss_ldap and smb domain controller panic on Fedora 4
I'm using Fedora Core 4. with packages of Samba, OpenLDAP, Berkeley DB that came with it. . I had just finished configuring OpenLdap and samba when i realized the nss-ldap libraries were not doing what it's supposed to do, like checking my LDAP for passwd's, logins, and ssh etc. 'getent passwd' only returned entries from '/etc/passwd'. So I had to install PADL's nss-ldap libraries from their web-site and ran 'ldconfig' even though rpm -qa showed that PADLs nss libraries were installed. This is when i realized i had a problem. now 'getent passwd' showd my LDAP entries, but I could not restart samba. The error is shown below. My ssh failed too. After supplying the password, the ssh login screen just closed off. On restart of Fedora, even xdm failed to start. I don't know if this is a Fedora bug or if the nss software did something to it. I've spent several days trying to get LDAP to work, and now samba has failed. Has anyone faced this problem ? I've used the documentation from http://www.idealx.org/prj/samba/smbldap-howto.en.html for my setup. root@fedora2 ~]# more /var/log/samba/log.smbd [2005/08/20 16:33:09, 2] lib/interface.c:add_interface(81) added interface ip=192.168.2.2 bcast=192.168.2.255 nmask=255.255.255.0 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2005/08/20 16:33:09, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2005/08/20 16:33:09, 2] lib/smbldap.c:smbldap_search_domain_info(1394) Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=WALDORF-NT))] [2005/08/20 16:33:09, 2] lib/smbldap.c:smbldap_open_connection(692) smbldap_open_connection: connection opened [2005/08/20 16:33:09, 3] lib/smbldap.c:smbldap_connect_system(866) ldap_connect_system: succesful connection to the LDAP server ldap_connect_system: LDAP server does support paged results [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2005/08/20 16:33:09, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2005/08/20 16:33:09, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2005/08/20 16:33:09, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2005/08/20 16:33:10, 0] lib/fault.c:fault_report(36) ==============================================================[2005/08/20 16:33:10, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 8246 (3.0.14a-2) Please read the appendix Bugs of the Samba HOWTO collection [2005/08/20 16:33:10, 0] lib/fault.c:fault_report(39) ==============================================================[2005/08/20 16:33:10, 0] lib/util.c:smb_panic2(1517) PANIC: internal error [2005/08/20 16:33:10, 0] lib/util.c:smb_panic2(1525) BACKTRACE: 28 stack frames: #0 smbd(smb_panic2+0x8a) [0xb5907c] #1 smbd(smb_panic+0x19) [0xb592c2] #2 smbd [0xb46018] #3 [0x111420] #4 /usr/lib/liblber-2.2.so.7(ber_put_string+0x3d) [0xd777bc] #5 /usr/lib/liblber-2.2.so.7(ber_printf+0x2ba) [0xd78448] #6 /usr/lib/libldap-2.2.so.7(ldap_build_search_req+0xee) [0x6be0be] #7 /usr/lib/libldap-2.2.so.7(ldap_search+0x8c) [0x6be23f] #8 /lib/libnss_ldap.so.2 [0x2b6fbf] #9 /lib/libnss_ldap.so.2 [0x2b6e10] #10 /lib/libnss_ldap.so.2 [0x2b75e4] #11 /lib/libnss_ldap.so.2 [0x2b7764] #12 /lib/libnss_ldap.so.2(_nss_ldap_initgroups_dyn+0xaa) [0x2b8532] #13 /lib/libc.so.6 [0x8b6de4] #14 /lib/libc.so.6(initgroups+0x64) [0x8b708c] #15 smbd [0xb3c189] #16 smbd(getgroups_user+0x4a) [0xb3c378] #17 smbd(pdb_default_enum_group_memberships+0x34) [0xb3c4dd] #18 smbd [0xb2cda3] #19 smbd [0xb22e5f] #20 smbd(pdb_enum_group_memberships+0x47) [0xb24b30] #21 smbd [0xb9bef0] #22 smbd [0xb9f1a6] #23 smbd(make_server_info_sam+0xc0) [0xb9f4eb] #24 smbd(init_guest_info+0xc1) [0xb9f71a] #25 smbd(main+0x2a7) [0xbdafb3] #26 /lib/libc.so.6(__libc_start_main+0xc6) [0x841de6] #27 smbd [0x9d94f1] [root@fedora2 ~]#