Question about smbtorture / cifs-load-gen

Richard Sharpe rsharpe at richardsharpe.com
Tue Apr 8 16:58:19 GMT 2003


On Tue, 8 Apr 2003, Nir Livni wrote:

> OK!
> Problem seems to have been solved.
> 
> cifs_bm.c , line 410,
> slprintf(cname, sizeof(fname) .....  <=== should be sizeof(cname)

Arrgh, thanks ...
 
> This have caused me buffer overruns when using longer client names...
> 
> Cheers,
> Nir
> 
> 
> 
> -----Original Message-----
> From: Nir Livni 
> Sent: Monday, April 07, 2003 5:47 PM
> To: samba-technical at samba.org
> Subject: RE: Question about smbtorture / cifs-load-gen
> 
> 
> Cifs_load_gen seems easier, 
> But somehow cannot connect to my samba server.
> I've tried everything (security = user/server/domain , encrypt password =
> yes,no).
> 
> The problem seem to be in cli_negprot( ).
> After cifs_load_gen sends the protocols it supports,
> It should receive NTLANMAN 1.0 as an answer.
> The log shows the samba returns this answer.
> But somehow, when cifs_load_gen is reading the server's response,
> Cli->protocol becomes 1 instead of 5.
> 
> Cliconnect.c Line 867:  cli->protocol =
> prots[SVAL(cli->inbuf,smb_vwv0)].prot;   <=== this is 1 instead of 5
> 
> Please forgive my ignorance regarding this matter.
> Hope you could help me solve it.
> 
> (Any ./configure paramters I should have given ?)
> 
> Thanks
> Nir
> 
> 
> [2003/04/07 17:37:17.889117, 3, pid=8102] smbd/process.c:switch_message(685)
>   switch message SMBnegprot (pid 8102)
> [2003/04/07 17:37:17.912124, 3, pid=8102] smbd/sec_ctx.c:set_sec_ctx(328)
>   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2003/04/07 17:37:17.912265, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [PC NETWORK PROGRAM 1.0]
> [2003/04/07 17:37:17.912285, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [MICROSOFT NETWORKS 1.03]
> [2003/04/07 17:37:17.912299, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [MICROSOFT NETWORKS 3.0]
> [2003/04/07 17:37:17.912312, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [LANMAN1.0]
> [2003/04/07 17:37:17.912326, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [LM1.2X002]
> [2003/04/07 17:37:17.912339, 3, pid=8102] smbd/negprot.c:reply_negprot(342)
>   Requested protocol [Samba]
> [2003/04/07 17:37:17.912825, 3, pid=8102] smbd/negprot.c:reply_negprot(426)
>   Selected protocol NT LANMAN 1.0
> [2003/04/07 17:37:17.913352, 3, pid=8102] smbd/process.c:process_smb(878)
>   Transaction 2 of length 74
> [2003/04/07 17:37:17.913381, 3, pid=8102] smbd/process.c:switch_message(685)
>   switch message SMBtconX (pid 8102)
> [2003/04/07 17:37:17.913396, 3, pid=8102] smbd/sec_ctx.c:set_sec_ctx(328)
>   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2003/04/07 17:37:17.913431, 4, pid=8102] smbd/reply.c:reply_tcon_and_X(334)
>   Got device type ?????
> [2003/04/07 17:37:17.914403, 1, pid=8102]
> smbd/password.c:authorise_login(727)
>   authorise_login: refusing user  with no session setup [2003/04/07
> 17:37:17.914450, 2, pid=8102] smbd/service.c:make_connection(331)
>   Invalid username/password for mytest []
> 
> -----Original Message-----
> From: Richard Sharpe [mailto:rsharpe at richardsharpe.com] 
> Sent: Sunday, April 06, 2003 8:04 PM
> To: Nir Livni
> Cc: samba-technical at samba.org
> Subject: Re: Question about smbtorture
> 
> 
> On Sun, 6 Apr 2003, Nir Livni wrote:
> 
> > Hi all,
> > 
> > I am trying to use torture with the NBWNT option.
> > 
> > Where can I get a compatible client.txt file with the proper requests
> > ?
> 
> Hmmm, you might find cifs_bm in the cifs_load_gen CVS area an easier tool 
> to use.
> 
> My experience is that if you can get a better throughput on cifs_bm 
> against a competitor's machine, you will outperform it on NetBench as 
> well.
> 
> Regards
> -----
> Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
> sharpe[at]ethereal.com, http://www.richardsharpe.com
> 

-- 
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



More information about the samba-technical mailing list