1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

7015 Commits

Author SHA1 Message Date
Stefan Metzmacher
1598aaca95 r11676: as tridge uses 0x%llx in his latest commits...
try to use it every where and see how portable it is

metze
(This used to be commit 66a94de5ddd09df858a515555c01aa3d4f7d3e96)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
7935df168f r11675: a more general way of getting rid of compiler warnings and errors
metze
(This used to be commit 653f5ccd61f2555bbd49b81c5cc660962b31aa68)
2007-10-10 13:46:11 -05:00
Andrew Tridgell
3e54c36fa4 r11674: SMB2 tree connect now works. We do 2 session setups and 2 tree
connects, giving the following output:

Running SMB2-CONNECT
Negprot reply:
current_time  = Fri Nov 11 20:10:42 2005 EST
boot_time     = Sat Nov 12 10:34:33 2005 EST
Session setup gave UID 0x40000000071
Session setup gave UID 0x140000000075
Tree connect gave tid = 0x7500000001
Tree connect gave tid = 0x7500000005
SMB2-CONNECT took 0.049024 secs
(This used to be commit a24a4c311005dec4c5638e9c7c10e5e2f9872f4d)
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
6c4be5073d r11673: - update the max_version of the owner when we get some records
in the sgroup_merge test, so that we don't see old records as new ones
- finish the owned,sgroup,active vs. sgroup * section

metze
(This used to be commit 534e34a1a1c822e72bf863e8acc396168b849b93)
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
087577e47b r11672: - add support for special group merge tests
- add owned,sgroup,active vs. replica,sgroup,active test

metze
(This used to be commit 938853dc5078a0d647d41177375ec8d35d61628b)
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
5f58c67b82 r11671: - make sure req is initialized
- only free the buffer when there's no request
- call async callback on error

metze
(This used to be commit 2084d62dd54c230c6494e482cb346b3ea959e6fb)
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
d9d90e105b r11670: fix the build
metze
(This used to be commit c0eebe293f341dcf35229c2cbbc3029f6f853abb)
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
3015c6ba04 r11669: - make sure req is initialized
- call async callback on error

metze
(This used to be commit 43aa5cffd3fd8bf07b236a039f5146e1e44296c6)
2007-10-10 13:46:10 -05:00
Andrew Tridgell
7a78d2d6b0 r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
(This used to be commit 72b34a7c1b66af6be02f66639efc55a19c73e387)
2007-10-10 13:46:10 -05:00
Andrew Tridgell
86c1370cb0 r11666: filled in the basic session setup. Vista happily accepts the first
stage of the session setup, and waits for more.
(This used to be commit 804c229c3ba7f866a7f3d66684e268d5ddc820ce)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
555b45e12c 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
(This used to be commit 4ef3902a8a99a0b8caa81a07ba07830d7cbbc32c)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
3d38b3dc06 r11664: forgot to commit the structs.h change
(This used to be commit 1f97dccd52a051686d436dbbd185146715b41dc8)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
686070a147 r11663: start of a SMB2 torture test. Just does a negprot and prints some fields for now.
test name is SMB2-CONNECT
(This used to be commit 13f27fadca2f74a2486caa7df0fc7662fca16f67)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
ac293f8534 r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation
(This used to be commit 68422dc73f6ea51bf906f3db223ae8abf077aba1)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
b18ed75a75 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
(This used to be commit d19235ede5d352d0b0373d204f4357dddde5946f)
2007-10-10 13:46:08 -05:00
Andrew Tridgell
5358763b41 r11659: allow the max runtime for smbtorture and smbd to be controlled on a
per-host basis in the build farm
(This used to be commit c8185fe414ef686a52327f420ee81ce09b983c3c)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
92b9b83b70 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
(This used to be commit d677ebf43d0d7e679ff11862683c993d887d9441)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
3b42d207ef 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
(This used to be commit e6eb0fd2c2f45d6f612d74c6b527c7b17094c907)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
3cdaf4c906 r11648: fix some bugs...
metze
(This used to be commit 475eb4cc96aa147897fd6b0d5b5cc0509fb1d2a0)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
507286dbcd r11647: add smbcli_ prefix
metze
(This used to be commit 356e7d037cf3fc24844b2efa5071917ea03e6163)
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
ca403dd4c6 r11646: fix typos
metze
(This used to be commit 0c520e19a0676c688341523add8a176c3aba8578)
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
aecff39aac r11644: free the buffer when it's not used
metze
(This used to be commit 16f2d92618a55188d260cadd144281b325cdacda)
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
0b6370ea27 r11643: fix compiler warnings
metze
(This used to be commit 913d5356eb04d0fd02c36052b5cb6a2a5646473a)
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
f0c7fca780 r11642: add some error checks
metze
(This used to be commit 9d6406d8daeff0a9bde72ce7749d18fa61324e8a)
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
bd7525e1b4 r11641: remove unused parameter vuid
metze
(This used to be commit 9399e4d260011ce59229086e39585e1e56bd79a5)
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
389f9dff29 r11640: just a nicer format, and make adding more special cases easier
metze
(This used to be commit 5fb5d1a864d9df0ac82fca145b51fdb27406bc97)
2007-10-10 13:46:05 -05:00
Andrew Tridgell
042a9958c8 r11639: fixed some create_time tests that should be change_time tests
(This used to be commit c4266c7f688145a9b7da8977aff7fb972b7d0aa4)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
498b2892dd r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64cb679c091ca46cc001ff9851eb91f0e)
2007-10-10 13:46:04 -05:00
Stefan Metzmacher
a2d2128b8a r11637: we need a session and a tcon for ntioctl() and ntrename()
metze
(This used to be commit 3389544c2b14a044aed4a6d0ff966c0a2d92a61a)
2007-10-10 13:46:03 -05:00
Andrew Tridgell
872b821fca r11636: a bit neater solution to the nt_cancel problem
(This used to be commit ba7864b07eebecd4d4eb2ce515412a49964ae179)
2007-10-10 13:46:03 -05:00
Stefan Metzmacher
7118df6df0 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
(This used to be commit 97cd824e44b03178706b108c7a78753faf412e8f)
2007-10-10 13:46:03 -05:00
Stefan Metzmacher
62346e2b65 r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
(This used to be commit 91dfa4c28d280aff8dbf46cf1e174b5b317ba322)
2007-10-10 13:46:03 -05:00
Tim Potter
2c8dcf4177 r11633: Fix some more warnings.
(This used to be commit 89039683db4f2f492b292b32e2dd783e977ae165)
2007-10-10 13:46:02 -05:00
Andrew Tridgell
4c9ba2ffa1 r11632: removed 2 unused functions
(This used to be commit fa904afed93a350dd0dcd3cddc1521a4a1ad6711)
2007-10-10 13:46:02 -05:00
Andrew Tridgell
64525309e3 r11631: fixed a signed/unsigned warning
(This used to be commit 86d08d3ec5cfa36e048042563a56aca79c87a5bb)
2007-10-10 13:46:02 -05:00
Andrew Tridgell
1aa141dbd5 r11630: another fix for over-reading in the packet code. This time get the
sign of the comparison right :-)
(This used to be commit 7e40077aa793e29b5770aae2e07e964239e8249b)
2007-10-10 13:46:02 -05:00
Andrew Tridgell
78422169b2 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
(This used to be commit 9c95015b9cccc10a5ba1facd4b48c0fff34e9588)
2007-10-10 13:46:01 -05:00
Andrew Tridgell
6481a752a2 r11628: fixed a valgrind error in the rpc echo test
(This used to be commit d340ea7906c091a1400d3e73a8f530174aa8a965)
2007-10-10 13:46:01 -05:00
Andrew Tridgell
79b3a3afb5 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
(This used to be commit f869fd674ec4b148dc9a264e94d19ce79d35131d)
2007-10-10 13:46:01 -05:00
Tim Potter
0eeedb97a5 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).
(This used to be commit 03c7da27a06736f2a27d76e6a00a24ab54453af9)
2007-10-10 13:46:01 -05:00
Tim Potter
16a9bfd33f r11625: NULL terminate list of strings. For some reason this wasn't causing a
crash on i386 but was on ia64.
(This used to be commit 12c77bb2e17ef3cb3264da86852832dffb5474c1)
2007-10-10 13:46:00 -05:00
Tim Potter
a7f37f0930 r11624: Use enum names instead of magic numbers.
(This used to be commit f177c223e6b881a65ed49ceacf9106e42d2a7d0a)
2007-10-10 13:46:00 -05:00
Andrew Tridgell
f3d66f310f r11623: convert the dcerpc socket layer to the generic packet code
(This used to be commit 4ea66e6e80de0d70b53bf9cd16c1dfd1c400f57e)
2007-10-10 13:46:00 -05:00
Andrew Tridgell
f59c61d413 r11622: convert the ldap server to the generic packet code
(This used to be commit 6ef4ba0c81002c9960dc5fe4fbfd0622957d492a)
2007-10-10 13:46:00 -05:00
Andrew Tridgell
b8f4d22ab5 r11621: some minor fixes from comments by metze
(This used to be commit 6ab808223475ba7c52dbe4d639af9a8e7f64b202)
2007-10-10 13:45:59 -05:00
Andrew Tridgell
65baaafc34 r11620: switch the ldap client code over to using the generic packet code
(This used to be commit 1d29ad2a27d89454e5e3c4a3cf05cc5edde0208c)
2007-10-10 13:45:59 -05:00
Andrew Tridgell
5d5b462bbb r11619: use the 32 bit length helper in the kdc.
(This used to be commit 24f20eed0e242aab76ce8f0f8db7266ddc9ec97b)
2007-10-10 13:45:59 -05:00
Andrew Tridgell
a9d0bf8045 r11618: added a generic '32 bit length prefix' full packet helper to the packet code
(This used to be commit b4dbe55105cc2807a17d7e5bf8db9756cc526a3b)
2007-10-10 13:45:59 -05:00
Jeremy Allison
a684ff80b0 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.
(This used to be commit d42644927d46154c6366f3a7d10bea09989ed813)
2007-10-10 13:45:58 -05:00
Stefan Metzmacher
70e9e843cb 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
(This used to be commit 5cc44994fb17211009e68f941e3db56acf0ca236)
2007-10-10 13:45:58 -05:00