NT status/error codes instead of DOS error codes - bug 3.0.0
jkleven99 at yahoo.com
Sun Nov 30 21:12:40 GMT 2003
K -- attached is trace of the problem from ethereal,
plus a copy of logs in /var/log/samba. I ran smbd
with debug level 10.
It is weird because if an error actually occurs during
sending packets (i.e., bad password or invalid share,
etc) then smbd WILL return a DOS error code. But for
succesful responses it always returns NT status code.
BTW, it might be 'ok' for smbd to return an NT status
code "success" to the negotiate protocol response
because at that point, the client (my code) has not
been able to even send the capabilities int yet. But
after the session setup w/ the capabilities, it should
be illegal to return the NT status code - i think.
--- Jeremy Allison <jra at samba.org> wrote:
> On Fri, Nov 28, 2003 at 01:20:35PM -0800, John
> Kleven wrote:
> > Samba 3.0.0 bug possible - wanted to get any input
> > from developers:
> > When i attach to smbd version 3.0.0 i specify in
> > my client packets (via flags2 arg) that i do NOT
> > understand NT style error codes.
> > Also, in my capabilities 32 bit int sent in
> > setup packet -- I say that i do not speak NT style
> > error codes.
> > But Samba 3.0.0 continues to send me NT codes for
> > packets that i send.
> > Here's the catch -- if the request to the smbd
> > is succesful (i.e. a session setup login packet to
> > server) it sends me the NT success code (i.e.
> > says that error codes are NT style). BUT... when
> > request fails, it DOES send me the DOS error code
> > it should.
> Can you please send me a capture trace of this and a
> level 10 from the smbd ? There is code in
> smbd/errors.c to
> prevent this from happening (see error_packet()). If
> doing this I'd like to know about it.
> The flags in the client packets don't matter, it's
> bit in the sessionsetup capabilities bit that smbd
> at to determine this.
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12601 bytes
Url : http://lists.samba.org/archive/samba-technical/attachments/20031130/84652e27/trace.tar.bin
More information about the samba-technical