1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

30 Commits

Author SHA1 Message Date
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
2390c9f24d r22866: handle incoming chained smb2 requests in our server code to let
the windows explorer in longhorn beta3 work.

metze
2007-10-10 14:52:26 -05:00
Andrew Tridgell
eba6c84eff r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
2007-10-10 14:18:04 -05:00
Stefan Metzmacher
730cdc4475 r17083: - implement SMB2 Cancel in the client
- the 0xffffffffffffffff seqnum is reserved for SMB2 Break (oplock breaks)
  so don't use it in a request. we should someday try to test this...

metze
2007-10-10 14:10:11 -05:00
Stefan Metzmacher
1f48e7dca6 r17081: add idle handler support to the smb2 client lib too
metze
2007-10-10 14:10:11 -05:00
Stefan Metzmacher
58baae8fc4 r16734: the 2 bytes after the opcode and before the flags,
is no padding...

the following patch is needed for vista beta2 to connect to samba4

metze
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
f309209629 r16705: fix a bug found by valgrind...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)

metze
2007-10-10 14:09:39 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
Jelmer Vernooij
e1f896948f r14511: Install more headers 2007-10-10 13:57:35 -05:00
Jelmer Vernooij
6391761601 r12696: Reduce the size of include/structs.h 2007-10-10 13:49:40 -05:00
Jelmer Vernooij
c722f665c9 r12694: Move some headers to the directory of the subsystem they belong to. 2007-10-10 13:49:39 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Andrew Tridgell
f2b8857797 r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and that
it only appeared to be like a SMBtrans request as it was being called
with function 0x11c017 which is "named pipe read write"

I wonder if this means we could do DCE/RPC over SMB using ntioctl
calls as well?
2007-10-10 13:46:53 -05:00
Andrew Tridgell
afe2323dc1 r11906: opcode 13 appears to be keepalive. Metze guessed this one :-) 2007-10-10 13:46:47 -05:00
Andrew Tridgell
a969ad592a r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
brainstorming this one.
2007-10-10 13:46:47 -05:00
Andrew Tridgell
6884ce66f2 r11901: added smb2_logoff() support (metze correctly guessed opcode 2 was
logoff)
2007-10-10 13:46:45 -05:00
Andrew Tridgell
aef915f312 r11888: - added SMB2 trans support
- added session key to SMB2

- renamed 'unknown2' in create to 'impersonation'
2007-10-10 13:46:41 -05:00
Andrew Tridgell
583f3c415e r11752: setup the dynamic pointer for incoming packets too 2007-10-10 13:46:22 -05:00
Stefan Metzmacher
79103c51e5 r11741: - the buffer code (first 2 bytes in the SMB2 body) seem to be the length
of the fixed body part, and +1 if there's a dynamic part
- there're 3 types of dynamic blobs
  with uint16_t offset/uint16_t size
  with uint16_t offset/uint32_t size
  with uint32_t offset/uint32_t size /* aligned to 8 bytes */
- strings are transmitted in UTF-16 with no termination and
  packet into a uint16/uint16 blob

metze
2007-10-10 13:46:20 -05:00
Andrew Tridgell
fe5986067e r11697: - added a generic SMB2 getinfo call
- added a SMB2-SCANGETINFO test for scanning for available info levels

- added names for the info levels I recognise to smb2.h
2007-10-10 13:46:15 -05:00
Andrew Tridgell
2a45476e94 r11696: added a few more opcode names 2007-10-10 13:46:14 -05:00
Andrew Tridgell
7bf1046fbb r11692: added a full composite (async) spnego session setup for SMB2. This
simplies the torture code a lot.
2007-10-10 13:46:14 -05:00
Andrew Tridgell
26ed781375 r11691: added reply buffer code checks and oplock flags for create request/reply 2007-10-10 13:46:13 -05:00
Andrew Tridgell
548fbd86b3 r11679: opening/creating files in SMB2 now works. Lots of unknown parameters
in the call tho.
2007-10-10 13:46:12 -05:00
Andrew Tridgell
a24a4c3110 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
2007-10-10 13:46:11 -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
68422dc73f r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation 2007-10-10 13:46:09 -05:00