> I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information: > > [2000/01/04 17:54:42, 3] libsmb/namequery.c:resolve_lmhosts(566) > resolve_lmhosts: Attempting lmhosts lookup for name > NTWEB2.AIS.MSU.EDU<0x20> > [2000/01/04 17:54:42, 3] libsmb/namequery.c:resolve_hosts(606) > resolve_hosts: Attempting host lookup for name NTWEB2.AIS.MSU.EDU<0x20> > [2000/01/04 17:54:42, 3] lib/util_sock.c:open_socket_out(900) > Connecting to 35.8.113.130 at port 139 > [2000/01/04 17:54:42, 3] smbd/password.c:server_cryptkey(986) > connected to password server NTWEB2.AIS.MSU.EDU > [2000/01/04 17:54:42, 0] > libsmb/clientgen.c:attempt_netbios_session_request(3258) > [2000/01/04 17:54:42, 0] lib/fault.c:fault_report(40) > ==============================================================> [2000/01/04 17:54:42, 0] lib/fault.c:fault_report(41) > INTERNAL ERROR: Signal 11 in pid 444 (2.0.6) > Please read the file BUGS.txt in the distribution > [2000/01/04 17:54:42, 0] lib/fault.c:fault_report(43) > ==============================================================> [2000/01/04 17:54:42, 0] lib/util.c:smb_panic(2456) > PANIC: internal error > > This does produce a core file which I have gone into gdb and issued the > backtrace command with the following output: > (gdb) bt > #0 0x28170ae8 in kill () from /usr/lib/libc.so.3 > #1 0x281a4f1c in abort () from /usr/lib/libc.so.3 > #2 0x80c4a66 in smb_panic () > #3 0x80b8aee in fault_report () > #4 0x80b8b2b in sig_fault () > #5 0xbfbfdfcc in ?? () > #6 0x807c5a5 in cli_errstr () > #7 0x8081aeb in attempt_netbios_session_request () > #8 0x80514f2 in server_cryptkey () > #9 0x805ae50 in reply_nt1 () > #10 0x805b332 in reply_negprot () > #11 0x807390f in switch_message () > #12 0x8073987 in construct_reply () > #13 0x8073afc in process_smb () > #14 0x80742d9 in smbd_process () > #15 0x804b6e9 in main () > #16 0x804a5ed in _start () > > The contents of my smb.conf file are: > [global] > > workgroup = AIS_TECH > server string = Samba Server > local master = no > > log file = /var/log/log.%m > max log size = 50 > > security = server > password server = ntweb2.ais.msu.edu > encrypt passwords = yes > username map = /usr/local/etc/smb.usermap > > socket options = TCP_NODELAY > > #============================ Share Definitions > =============================> [homes] > comment = Home Directories > browseable = no > writable = yes > > [home2] > comment = home2 System Share > path = /home2 > valid users = murphyp1 criswel6 firsttim > public = no > writable = yes > printable = no > create mask = 0760 > > This configuration worked under Samba 2.0.5. The password server is an NT > PDC, but my FreeBSD box is not part of the domain. > > If you need any further information, please ask. > > Patrick Murphy > Systems Programmer > Michigan State University
"Murphy, Patrick" wrote:> > I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information:This is a known problem I'm afraid. Please apply the following patch to the 2.0.6 source code (this will be in 2.0.7). Regards, Jeremy Allison, Samba Team. --------------------cut here---------------------------- --- /home/jeremy/tmp/samba-2.0.6/source/libsmb/clientgen.c Wed Nov 10 18:36:03 1999 +++ libsmb/clientgen.c Fri Dec 3 13:09:14 1999 @@ -2162,7 +2162,6 @@ int dirlist_len = 0; int total_received = -1; BOOL First = True; - int ff_resume_key = 0; int ff_searchcount=0; int ff_eos=0; int ff_lastname=0; @@ -2199,12 +2198,12 @@ SSVAL(param,0,ff_dir_handle); SSVAL(param,2,max_matches); /* max count */ SSVAL(param,4,info_level); - SIVAL(param,6,ff_resume_key); /* ff_resume_key */ + SIVAL(param,6,0); /* ff_resume_key */ SSVAL(param,10,8+4+2); /* resume required + close on end + continue */ pstrcpy(param+12,mask); - DEBUG(5,("hand=0x%X resume=%d ff_lastname=%d mask=%s\n", - ff_dir_handle,ff_resume_key,ff_lastname,mask)); + DEBUG(5,("hand=0x%X ff_lastname=%d mask=%s\n", + ff_dir_handle,ff_lastname,mask)); } if (!cli_send_trans(cli, SMBtrans2, @@ -2257,13 +2256,11 @@ switch(info_level) { case 260: - ff_resume_key =0; StrnCpy(mask,p+ff_lastname, MIN(sizeof(mask)-1,data_len-ff_lastname)); break; case 1: pstrcpy(mask,p + ff_lastname + 1); - ff_resume_key = 0; break; } } else { @@ -2295,8 +2292,8 @@ if (rdata) free(rdata); rdata = NULL; if (rparam) free(rparam); rparam = NULL; - DEBUG(3,("received %d entries (eos=%d resume=%d)\n", - ff_searchcount,ff_eos,ff_resume_key)); + DEBUG(3,("received %d entries (eos=%d)\n", + ff_searchcount,ff_eos)); if (ff_searchcount > 0) loop_count = 0; @@ -3253,9 +3250,9 @@ if (!nmb_name_equal(&called, &smbservername) || !cli_initialise(cli) || !cli_connect(cli, desthost, pdest_ip) || - !cli_session_request(cli, &calling, &called)) { - DEBUG(0,("attempt_netbios_session_request: %s rejected the session. \ -Error was : %s.\n", desthost, cli_errstr(cli))); + !cli_session_request(cli, &calling, &smbservername)) { + DEBUG(0,("attempt_netbios_session_request: %s rejected the session for name *SMBSERVER.\n", + desthost)); cli_shutdown(cli); return False; } --------------------cut here---------------------------- -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------