Andrew Tridgell
3df3bf577d
ensure we don't end up with a partially initialised EA structure
...
(This used to be commit 388f4fde3655146bf57b4c51c59c39f475aa7fe8)
2008-06-06 10:53:00 -07:00
Andrew Tridgell
3850d47fef
updated some info levels based on WSPP docs
...
(This used to be commit f84620324a8cebcd2fd19388d910928ca1ad1334)
2008-06-02 11:02:57 +10:00
Andrew Tridgell
c86dc11be6
added support for returning the maximal access MXAC tag in SMB2 create
...
(This used to be commit 4eb49335d5f0319f9aa47ded5215a2977d3336bf)
2008-05-29 19:16:26 +10:00
Andrew Tridgell
2173169e19
added support for all of the known SMB2 create tags in our client
...
library
(This used to be commit 597b38e97b01d2137e6ac96ca07cd56fadb2c09e)
2008-05-28 15:27:50 +10:00
Andrew Tridgell
8daeee5c5d
ensure that we honor SMB2 read min_count properly
...
(This used to be commit 318038d6f670efffa96d8b0db63f46b3752e1cd3)
2008-05-27 18:20:23 +10:00
Andrew Tridgell
cb36437db2
added support for the output fields of SMB2 close
...
(This used to be commit 2633bc749792c224acc73a2e4ca723404331c19c)
2008-05-27 16:43:36 +10:00
Andrew Tridgell
2ad2bdda89
stricter checks for valid inputs in SMB2 open and lock
...
(This used to be commit a7b5689a73adde59de28770aa3949660441291ea)
2008-05-26 15:02:43 +10:00
Andrew Tridgell
d5def936fe
pass in the required alignment to the EA construction routines
...
(This used to be commit af31030e0b78b6b220740529901ec8d2d9f5a3fe)
2008-05-22 22:46:29 +10:00
Andrew Tridgell
a6e5c70da7
added a define for all valid file attributes
...
(This used to be commit 198ed9336756f973cebd7cc3df7f51e2c4575205)
2008-05-22 17:54:06 +10:00
Andrew Tridgell
dec930448f
fixed parsing of the SMB2 ALL_INFO qfileinfo level
...
(This used to be commit a7be5ba22e0cf2c61501f5a05e64673f31ba145c)
2008-05-22 14:49:21 +10:00
Andrew Tridgell
aed93a238e
fixed SMB2 flush call, and added flush to gentest_smb2
...
(This used to be commit c52fe1fe1c77636d87355d3c4baa66e052fe9008)
2008-05-21 22:51:21 +10:00
Andrew Tridgell
4d39976ddd
fixed SMB2 locking
...
- SMB2 locking is different in several ways from SMB locking. To fix
it properly we will need a new generic mapping structure for
locking, but for now do a best effort mapping
- added locking to gentest_smb2
(This used to be commit ea6d9cf602302adafe0f9d5f5f90a9b26d1ead6f)
2008-05-21 22:12:20 +10:00
Andrew Tridgell
8846981807
update some SMB2 find flags
...
(This used to be commit b7560afd4bab984c0083e9687b69bc42970ad932)
2008-05-15 20:46:10 +10:00
Andrew Bartlett
d67e47e5cd
Add comment explaining why io.in.workgroup isn't important.
...
This protocol feild isn't used by servers (apparently), so we might be
able to get rid of it.
Andrew Bartlett
(This used to be commit 58935acc7c8e97323d5d5979234ef26ef8a100a4)
2008-04-24 16:27:36 +01:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-21 18:12:33 -04:00
Stefan Metzmacher
670b7dcae3
libcli: define structure for SMB2 Break
...
metze
(This used to be commit 5ffea702c3a1c92a797afab1a3cadf2f2a18729f)
2008-04-19 01:54:44 +02:00
Andrew Tridgell
11703b2986
fix the overflow/wrap checks in Samba4 for new gcc optimisation behavior
...
The approach I have used is as set out in
https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array
(This used to be commit 92d5fb531db39be655f0cbd2d75b5f675a0a4cfa)
2008-04-17 15:20:39 +02:00
Stefan Metzmacher
578539216f
libcli/smb2: make it possible to pass additional extra blobs in smb2_create()
...
This also fixes the alignment from 8 to 4 byte bounderies.
metze
(This used to be commit e0a0d8e36acd735b587cd7870625af52c5dc3431)
2008-04-17 01:58:25 +02:00
Andrew Tridgell
275f32ae2d
fill in unknown fields in SMB2 READ call
...
(This used to be commit 9b686c138037f613da15168d0722786e00f023e5)
2008-04-14 11:31:17 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Stefan Metzmacher
6743de076d
libcli/raw: add RAW_RENAME_NTTRANS support
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit bfe773a620640fa46efe008f38144f5452350825)
2008-03-11 11:49:00 -07:00
Stefan Metzmacher
3cbe47b2ae
libcli/raw: make it possible to not send CAP_LEVEL_II_OPLOCKS
...
But the keep the default to always send it
when the server supports it too.
metze
(This used to be commit 33caaef2e46557525a8ffb79d6dd0db46a079529)
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
3101cb888d
Remove uses of global_loadparm.
...
(This used to be commit a16c9a2129ce92e7e1a613b2badd168e42ead436)
2008-02-25 12:51:55 +01:00
Jelmer Vernooij
3c20b3eeba
Fix the build.
...
(This used to be commit f4b31ad76771d674ec85cd155b023eed377e6eb4)
2008-02-21 18:11:44 +01:00
Jelmer Vernooij
299265d47b
Remove yet more global_loadparm instances.
...
(This used to be commit 5de88728ac5c567d3711d1ac6862bbdaced84b75)
2008-02-21 18:09:47 +01:00
Jelmer Vernooij
921b176484
Remove more uses of global_loadparm.
...
(This used to be commit 47d05ecf6fef66c90994f666b8c63e2e7b5a6cd8)
2008-02-21 14:50:57 +01:00
Andrew Tridgell
afe8e5551e
fixed RAW-READ after the bufinfo changes. Thanks to Metze for spotting
...
this.
(This used to be commit 3c9973b695a0b5c30d3a5bfabecf62dd1a25ebc1)
2008-02-16 13:28:37 +11:00
Andrew Tridgell
4a04a5e620
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.
(This used to be commit f6cdf3f1177f63d80be757f007eb15380839b4f5)
2008-02-14 14:54:21 +11:00
Andrew Tridgell
839ab724dc
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
(This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
2008-02-14 12:30:31 +11:00
Andrew Tridgell
e870cfec9f
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.
(This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2008-02-14 10:12:33 +11:00
Andrew Tridgell
88d2e05227
updated SMB2 create operation to match WSPP.
...
Adding some defined for various new create options
(This used to be commit d037dc23ced3df6bce98cbf4810fb5f1247336bd)
2008-02-13 15:05:44 +11:00
Andrew Tridgell
e94d710b0b
updated SMB2 tcon as per WSPP docs
...
(This used to be commit 5913e3e549e71affc66c28cacb6563331fb0c790)
2008-02-13 10:13:28 +11:00
Andrew Tridgell
416360895f
converted SMB2 session setup to use WSPP protocol field names
...
(This used to be commit 3c2af0fdc4916dce32c2690e49dde0852d1a0c50)
2008-02-12 16:43:38 +11:00
Andrew Tridgell
8fdb9504dc
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
(This used to be commit 9dc284770df9393a1a619735dc7a148713936fa7)
2008-02-12 16:20:13 +11:00
Andrew Tridgell
7b96c53bcb
added some helper functions for GUID handling
...
(This used to be commit 7d3ffd4d2b59d7c87c0a81030f349db21c071967)
2008-02-12 16:18:51 +11:00
Jelmer Vernooij
9d09a06920
r26676: libcli: Fill in lp_workgroup() again, should fix my breakage of cifsdd tests. Thanks to Andrew for catching this.
...
Also fixes a typo in sessetup.c.
(This used to be commit b97de4a655b989a481d5d001ce9a5d3969d2909c)
2008-01-06 16:06:04 -06:00
Jelmer Vernooij
2c8c9a5355
r26669: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 50c46160d997e0448f51ae09e0f3c79e8519fa41)
2008-01-05 09:42:02 -06:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
425732f688
r26651: libsmb: Allow specifying signing policy from higher up.
...
The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.
(This used to be commit 9f64213463b5bf3bcbf36913139e9a5042e967a2)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
969b8579c7
r26646: libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections.
...
(This used to be commit 0ef75e4e3cb0e1bd10e367a00f5e9b725587c40a)
2008-01-02 12:48:04 -06:00
Jelmer Vernooij
771b347f9b
r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
...
(This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
d1e716cf43
r26432: Require ndr_pull users to specify iconv_convenience.
...
(This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
2007-12-21 05:50:02 +01:00
Jelmer Vernooij
61873ce94c
r26431: Require ndr_push creators to specify a iconv_convenience context.
...
(This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
5f4842cf65
r26376: Add context for libcli_resolve.
...
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
01d2acfdb4
r26335: Specify name_resolve_order to socket code.
...
(This used to be commit b03e5d00110be3f1fe5809dad4eb6ca5cea7463d)
2007-12-21 05:48:46 +01:00
Jelmer Vernooij
39ee38d9c1
r26316: Use contexts for conversion functions.
...
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21 05:48:30 +01:00