Andrew Tridgell
66d0502228
handle pushing of zero length smb2 strings
2008-02-18 14:53:48 +11:00
Andrew Tridgell
fbcf3e65b9
fixed handling of zero sized buffers versus NULL buffers in
...
SMB2. Thanks to Metze for spotting this.
2008-02-16 07:25:38 +11:00
Andrew Tridgell
3aaa2e86d9
updated SMB2 code for getinfo according to WSPP docs
...
- Updated getinfo structures and field names
- also updated the protocol revision number handling to reflect
new docs
2008-02-14 17:11:36 +11:00
Andrew Tridgell
f6cdf3f117
A better way to handle the different format of RenameInformation in SMB2
...
We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2
and set that level when handling SMB2 packets. This makes the parsers clearer.
2008-02-14 14:54:21 +11:00
Andrew Tridgell
52d7972d95
Fixed SMB2 rename operations from Vista clients
...
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does
Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
2008-02-14 12:30:31 +11:00
Andrew Tridgell
ca6d9be6cb
Convert SMB and SMB2 code to use a common buffer handling structure
...
This converts our SMB and SMB2 code to use a common structure "struct
request_bufinfo" for information on the buffer bounds of a packet,
alignment information and string handling. This allows us to use a
common backend for SMB and SMB2 code, while still using all the same
string and blob handling functions.
Up to now we had been passing a NULL req handle into these common
routines from the SMB2 side of the server, which meant that we failed
any operation which did a bounds checked string extraction (such as a
RenameInformation setinfo call, which is what Vista uses for renaming
files)
There is still some more work to be done on this - for example we can
now remove many of the SMB2 specific buffer handling functions that we
had, and use the SMB ones.
2008-02-14 10:12:33 +11:00
Andrew Tridgell
d037dc23ce
updated SMB2 create operation to match WSPP.
...
Adding some defined for various new create options
2008-02-13 15:05:44 +11:00
Andrew Tridgell
5913e3e549
updated SMB2 tcon as per WSPP docs
2008-02-13 10:13:28 +11:00
Andrew Tridgell
d2c6ad55ec
updated SMB2 header defines to match WSPP docs
2008-02-12 17:00:35 +11:00
Andrew Tridgell
3c2af0fdc4
converted SMB2 session setup to use WSPP protocol field names
2008-02-12 16:43:38 +11:00
Andrew Tridgell
9dc284770d
converted the out side of SMB2 negprot handling
...
This follows the SMB2 PFIF docs. Current versions of Vista can now connect to Samba4 as a SMB2 server
and do basic operations
2008-02-12 16:20:13 +11:00
Andrew Tridgell
55af8acc7b
fixed up the .in side of SMB2 negprot
...
fixed the input side of the SMB2 negprot structure and parsers according to the documentation
2008-02-12 12:54:44 +11:00
Jelmer Vernooij
385ffe4f4c
r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
d37136b7ab
r26429: Avoid use of global_smb_iconv_convenience.
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
2833f320de
r26409: Pass smb ports along.
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
459e1466a4
r26376: Add context for libcli_resolve.
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
baa5bcd303
r26337: Move global_loadparm to a higher caller.
2007-12-21 05:48:47 +01:00
Jelmer Vernooij
f6420d933b
r26316: Use contexts for conversion functions.
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
99113075c4
r26266: Remove more global_loadparm uses.
2007-12-21 05:47:42 +01:00
Jelmer Vernooij
b9e3a4862e
r26260: Store loadparm context in gensec context.
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
566aa14139
r25554: Convert last instances of BOOL, True and False to the standard types.
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
3468952e77
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
3fcc960839
r25398: Parse loadparm context to all lp_*() functions.
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
df9cebcb97
r25035: Fix some more warnings, use service pointer rather than service number in more places.
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
5085c53fcf
r25027: Fix more warnings.
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
abe8349f9b
r25026: Move param/param.h out of includes.h
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
08bb1ef643
r25000: Fix some more C++ compatibility warnings.
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
925abf74fa
r24994: Fix some C++ warnings.
2007-10-10 15:05:26 -05:00
Jelmer Vernooij
31993cf67b
r24780: More work allowing libutil to be used by external users.
2007-10-10 15:03:10 -05:00
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
Stefan Metzmacher
c08eeb62ca
r22791: make it possible to use smb2_create_blob_add() in the server code too
...
metze
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
635a636e89
r22788: fix typo
...
metze
2007-10-10 14:52:17 -05:00
Andrew Tridgell
b3e2d49087
r20650: revert a bunch of code I didn't mean to commit yet
2007-10-10 14:37:26 -05:00
Andrew Tridgell
5870830b99
r20647: add cluster code
2007-10-10 14:37:24 -05:00
Andrew Tridgell
f55de25ab3
r18715: 0x8 style status returns should also fail here (thanks metze)
2007-10-10 14:19:03 -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
Jelmer Vernooij
f7afa1cb77
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
683fc25f65
r17318: make better usage of the composite api
...
metze
2007-10-10 14:15:11 -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
49b96ac44a
r17020: pass the real error to the failing requests
...
metze
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
8d4fd35b10
r17019: don't timeout on notifies
...
metze
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
de50e0ccdd
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
a455dc7a83
r16975: implement SMB2 Notify call in the client lib
...
metze
2007-10-10 14:10:04 -05:00
Stefan Metzmacher
58bed7322c
r16875: implement SMB2 Find in the frontend
...
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
3cf50e26b7
r16873: - grow the buffer with the correct size, we maybe had 1 byte preallocated
...
- body_size doesn't contain the preallocated byte so don't remove it
metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
78c201db8a
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
2007-10-10 14:09:49 -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