1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00
Commit Graph

7218 Commits

Author SHA1 Message Date
Stefan Metzmacher
2084d62dd5 r11671: - make sure req is initialized
- only free the buffer when there's no request
- call async callback on error

metze
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
c0eebe293f r11670: fix the build
metze
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
43aa5cffd3 r11669: - make sure req is initialized
- call async callback on error

metze
2007-10-10 13:46:10 -05:00
Andrew Tridgell
72b34a7c1b r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid 2007-10-10 13:46:10 -05:00
Andrew Tridgell
804c229c3b r11666: filled in the basic session setup. Vista happily accepts the first
stage of the session setup, and waits for more.
2007-10-10 13:46:09 -05:00
Andrew Tridgell
4ef3902a8a r11665: started to put some meat on the structure used for the SMB2 library
the call definitions will be in smb2_calls.h, which will play a
similar role that smb_interfaces.h plays for the old SMB protocol
2007-10-10 13:46:09 -05:00
Andrew Tridgell
1f97dccd52 r11664: forgot to commit the structs.h change 2007-10-10 13:46:09 -05:00
Andrew Tridgell
13f27fadca r11663: start of a SMB2 torture test. Just does a negprot and prints some fields for now.
test name is SMB2-CONNECT
2007-10-10 13:46:09 -05:00
Andrew Tridgell
68422dc73f r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation 2007-10-10 13:46:09 -05:00
Andrew Tridgell
d19235ede5 r11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, or
the associated send queue

- fixed negnowait to not watch for the SMBCLI_REQUEST_SEND state
2007-10-10 13:46:08 -05:00
Andrew Tridgell
c8185fe414 r11659: allow the max runtime for smbtorture and smbd to be controlled on a
per-host basis in the build farm
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
d677ebf43d r11650: - as every call that goes down to the ntvfs layer need a valid tcon and session
ntcancel also needs to have AS_USER
- move the SIGNING_NO_REPLY logic as global option, because this needs to be set
  for the error replies too.
- as we currently don't know how to generate signatures for ntcancel replies
  we just skip the sending of the reply
- w2k3 first checks the VUID and then the TID, so we do now
- ntcreateX also uses ERRbaduid when getting a wrong VUID

metze
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
e6eb0fd2c2 r11649: - add support for ntcancel replies (they only happen in error cases,
e.g when you supply an invalid TID or VUID)
- as we don't yet understand how to check the smb_signing of this
  replies, we just ignore the whole packet

abartlet,jra,tridge:
can someone try to find out how to create and verify
the signatures for this replies.
what I noticed is that still use the increment by one for the request,
and later requests are still generated fine, only the generating and verifying
of the ntcancel replies make problems

metze
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
475eb4cc96 r11648: fix some bugs...
metze
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
356e7d037c r11647: add smbcli_ prefix
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
0c520e19a0 r11646: fix typos
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
16f2d92618 r11644: free the buffer when it's not used
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
913d5356eb r11643: fix compiler warnings
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
9d6406d8da r11642: add some error checks
metze
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
9399e4d260 r11641: remove unused parameter vuid
metze
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
5fb5d1a864 r11640: just a nicer format, and make adding more special cases easier
metze
2007-10-10 13:46:05 -05:00
Andrew Tridgell
c4266c7f68 r11639: fixed some create_time tests that should be change_time tests 2007-10-10 13:46:04 -05:00
Andrew Tridgell
8331eee64c r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
2007-10-10 13:46:04 -05:00
Stefan Metzmacher
3389544c2b r11637: we need a session and a tcon for ntioctl() and ntrename()
metze
2007-10-10 13:46:03 -05:00
Andrew Tridgell
ba7864b07e r11636: a bit neater solution to the nt_cancel problem 2007-10-10 13:46:03 -05:00
Stefan Metzmacher
97cd824e44 r11635: fix a handling of packet_send in the smb client lib
this was cause of the PANIC on the build farm on metze01

as we use req->out.buffer from the old request in the smb_raw_ntcancel()
and send a 0 TID, that causes our server code to crash
(a fix for the server code will follow)

metze
2007-10-10 13:46:03 -05:00
Stefan Metzmacher
91dfa4c28d r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
2007-10-10 13:46:03 -05:00
Tim Potter
89039683db r11633: Fix some more warnings. 2007-10-10 13:46:02 -05:00
Andrew Tridgell
fa904afed9 r11632: removed 2 unused functions 2007-10-10 13:46:02 -05:00
Andrew Tridgell
86d08d3ec5 r11631: fixed a signed/unsigned warning 2007-10-10 13:46:02 -05:00
Andrew Tridgell
7e40077aa7 r11630: another fix for over-reading in the packet code. This time get the
sign of the comparison right :-)
2007-10-10 13:46:02 -05:00
Andrew Tridgell
9c95015b9c r11629: fixed a bug found with the socket:testnonblock code. With randomised
under-reads we could end up supplying a buffer to the client that has
an incorrect length
2007-10-10 13:46:01 -05:00
Andrew Tridgell
d340ea7906 r11628: fixed a valgrind error in the rpc echo test 2007-10-10 13:46:01 -05:00
Andrew Tridgell
f869fd674e r11627: give the caller much more control over the stream to packet process,
allowing it to specify the initial read size (thus preventing
over-reading) and to stop the recv process when needed. This is used
by the dcerpc socket code, which relies on not getting packets when it
isn't ready for them
2007-10-10 13:46:01 -05:00
Tim Potter
03c7da27a0 r11626: Fix unhandled enum in case statement warnings by noting appropriately
that some values aren't handled.  The remaining warnings I think are
actual bugs or required functionality that is missing (mostly lack of
server side Unix extensions).
2007-10-10 13:46:01 -05:00
Tim Potter
12c77bb2e1 r11625: NULL terminate list of strings. For some reason this wasn't causing a
crash on i386 but was on ia64.
2007-10-10 13:46:00 -05:00
Tim Potter
f177c223e6 r11624: Use enum names instead of magic numbers. 2007-10-10 13:46:00 -05:00
Andrew Tridgell
4ea66e6e80 r11623: convert the dcerpc socket layer to the generic packet code 2007-10-10 13:46:00 -05:00
Andrew Tridgell
6ef4ba0c81 r11622: convert the ldap server to the generic packet code 2007-10-10 13:46:00 -05:00
Andrew Tridgell
6ab8082234 r11621: some minor fixes from comments by metze 2007-10-10 13:45:59 -05:00
Andrew Tridgell
1d29ad2a27 r11620: switch the ldap client code over to using the generic packet code 2007-10-10 13:45:59 -05:00
Andrew Tridgell
24f20eed0e r11619: use the 32 bit length helper in the kdc. 2007-10-10 13:45:59 -05:00
Andrew Tridgell
b4dbe55105 r11618: added a generic '32 bit length prefix' full packet helper to the packet code 2007-10-10 13:45:59 -05:00
Jeremy Allison
d42644927d r11616: Replace old crc32 code with one from the FreeBSD tree.
*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
2007-10-10 13:45:58 -05:00
Stefan Metzmacher
5cc44994fb r11611: don't use unions without a instance name, not all compilers support that...
fix the build with cc on IRIX 6.5 us4

tridge: we should post this to the appweb maintainers, also with my
        hex constant fix from a few weeks ago!

metze
2007-10-10 13:45:58 -05:00
Andrew Tridgell
d2b568a111 r11609: fixed handling of one way requests with new send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
2cbcc8a919 r11608: switched the kdc to use the generic packet send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
9eee7bafa1 r11607: switched the smb server to use the generic packet send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
0bcea45b15 r11606: use the generic packet send code in libcli/raw/ 2007-10-10 13:45:57 -05:00
Andrew Tridgell
f98d499b2e r11605: added handling of the send queue to the generic packet handling code 2007-10-10 13:45:57 -05:00