1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00
Commit Graph

376 Commits

Author SHA1 Message Date
Stefan Metzmacher
bfe773a620 libcli/raw: add RAW_RENAME_NTTRANS support
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-03-11 11:49:00 -07:00
Stefan Metzmacher
33caaef2e4 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
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
a16c9a2129 Remove uses of global_loadparm. 2008-02-25 12:51:55 +01:00
Jelmer Vernooij
f4b31ad767 Fix the build. 2008-02-21 18:11:44 +01:00
Jelmer Vernooij
5de88728ac Remove yet more global_loadparm instances. 2008-02-21 18:09:47 +01:00
Jelmer Vernooij
47d05ecf6f Remove more uses of global_loadparm. 2008-02-21 14:50:57 +01:00
Andrew Tridgell
3c9973b695 fixed RAW-READ after the bufinfo changes. Thanks to Metze for spotting
this.
2008-02-16 13:28:37 +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
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
7d3ffd4d2b added some helper functions for GUID handling 2008-02-12 16:18:51 +11:00
Jelmer Vernooij
b97de4a655 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.
2008-01-06 16:06:04 -06:00
Jelmer Vernooij
50c46160d9 r26669: Janitorial: Remove uses of global_loadparm. 2008-01-05 09:42:02 -06:00
Jelmer Vernooij
8a97886e24 r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct. 2008-01-03 12:33:36 -06:00
Jelmer Vernooij
9f64213463 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.
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
0ef75e4e3c 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. 2008-01-02 12:48:04 -06: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
2f29f80e07 r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange. 2008-01-01 16:12:15 -06:00
Jelmer Vernooij
61ad78ac98 r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob(). 2008-01-01 16:12:11 -06:00
Jelmer Vernooij
28b1d36551 r26432: Require ndr_pull users to specify iconv_convenience. 2007-12-21 05:50:02 +01:00
Jelmer Vernooij
7352206f44 r26431: Require ndr_push creators to specify a iconv_convenience context. 2007-12-21 05:50:00 +01: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
b03e5d0011 r26335: Specify name_resolve_order to socket code. 2007-12-21 05:48:46 +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
c7eae1c784 r26264: pass name resolve order explicitly, use torture context for settings in dssync tests. 2007-12-21 05:47:39 +01:00
Jelmer Vernooij
5b29ef7c03 r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly. 2007-12-21 05:47:15 +01:00
Stefan Metzmacher
9b151e6cea r25924: fix bug in UNIX_INFO2 push code found make make valgrindtest
metze
2007-12-21 05:45:04 +01:00
Stefan Metzmacher
6223c7fddc r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze
2007-12-21 05:45:02 +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
3fcc960839 r25398: Parse loadparm context to all lp_*() functions. 2007-10-10 15:07:25 -05:00
Jelmer Vernooij
37425495f3 r25301: Merge my includes.h cleanups. 2007-10-10 15:07:09 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Jelmer Vernooij
0bcb21ed74 r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier. 2007-10-10 15:05:28 -05:00
Jelmer Vernooij
925abf74fa r24994: Fix some C++ warnings. 2007-10-10 15:05:26 -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
Andrew Bartlett
3a8192c742 r23754: Make sure to check the status return before we de-reference the
returned elements.

Andrew Bartlett
2007-10-10 14:59:10 -05:00
Andrew Tridgell
a9c23729f2 r23519: added libcli code for fetching shadow copy information 2007-10-10 14:53:23 -05:00
Andrew Tridgell
590c6c21db r23138: added a raw interface for SMBecho operations 2007-10-10 14:52:55 -05:00
Andrew Tridgell
75d537d3a5 r23057: only call the async recv function for the first pending receive, not
all pending receives, when the transport dies. This is because the
async callback most commonly shuts down the connection (it's the only
reasonable thing to do when it's dead), and that frees the whole
context. That means that if we loop more than once, we'll end up using
freed memory.
2007-10-10 14:52:45 -05:00
Stefan Metzmacher
258555975d r22858: - let SMB2-LOCK-VALID-REQUEST pass against longhorn beta3
- add modify the SMB2-LOCK-BLOCK-WRITE test to also test reading
  and name in SMB2-LOCK-RW-EXCLUSIV
- add SMB2-LOCK-NONE and SMB2-LOCK-SHARED

metze
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
e1cc933c00 r22790: fix initialization for chained requests
metze
2007-10-10 14:52:17 -05:00
James Peach
eef672bfff r21949: After discussion with the Apple and Linux client maintainers,
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. the lenght field does not count any null.
2007-10-10 14:49:39 -05:00