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

120 Commits

Author SHA1 Message Date
Stefan Metzmacher
cc42cd5f67 ntvfs: pass down the client capabilities into the ntvfs layer
Note that we don't use any protocol specific values here.

For now only NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS is defined
others should be defined, when we find out that the ntvfs
layer needs to know about it.

metze
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
bfad9610c4 Fix build with partial linking. 2008-02-18 16:02:33 +01:00
Andrew Tridgell
cf109460af 3 places where the VFS backend doesn't handle NULL strings. 2008-02-18 14:54:14 +11:00
Jelmer Vernooij
3c1a7c0dcc Remove type before variables in data.mk 2008-02-14 12:03:34 +01: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
252bcf207b fixed crash when 0 dialects (thanks metze!) 2008-02-12 20:29:31 +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
18cd08623e r26672: Janitorial: Remove uses of global_loadparm. 2008-01-05 13:06: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
1b947fe0e6 r26430: require explicit specification of loadparm context. 2007-12-21 05:49:58 +01:00
Jelmer Vernooij
d37136b7ab r26429: Avoid use of global_smb_iconv_convenience. 2007-12-21 05:49:56 +01:00
Jelmer Vernooij
5d589a0d94 r26355: Eliminate global_loadparm in more places. 2007-12-21 05:49:01 +01:00
Jelmer Vernooij
17637e4490 r26353: Remove use of global_loadparm. 2007-12-21 05:48:57 +01:00
Jelmer Vernooij
f6420d933b r26316: Use contexts for conversion functions. 2007-12-21 05:48:30 +01:00
Jelmer Vernooij
7c00866423 r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection. 2007-12-21 05:47:47 +01:00
Jelmer Vernooij
b9e3a4862e r26260: Store loadparm context in gensec context. 2007-12-21 05:47:34 +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
c9651e2c5c r25551: Convert to standard bool type. 2007-10-10 15:07:54 -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
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -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
34ef07b1f5 r23067: use 'const union smb_search_data *file' also in the server code to get rid
of compiler warnings in the cifs backend

metze
2007-10-10 14:52:47 -05:00
Stefan Metzmacher
577acc198b r23045: forward SMB2 oplock breaks to the client
metze
2007-10-10 14:52:44 -05:00
Stefan Metzmacher
7c29b8a7e6 r23044: - use uint32_t for handle id's
- include the session vuid in the SMB2 128-Bit wire handles
  as SMB2 oplock breaks doesn't include a TID or VUID in the header
  we need to make sure the handle is unique for the whole TCP connection

metze
2007-10-10 14:52:44 -05:00
Andrew Tridgell
9a8da730a7 r23020: a better fix for the memory leak - this one doesn't stuff up spnego :) 2007-10-10 14:52:40 -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
7fa00381ef r22843: pass smb2 lock requests to the ntvfs layer
metze
2007-10-10 14:52:24 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Volker Lendecke
14b88fefa0 r18686: Fix typo protocl->protocol 2007-10-10 14:19:02 -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
3d849f9d25 r17360: add some comments
metze
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
679ac74e71 r17341: pass a messaging context to auth_context_create()
and gensec_server_start().

calling them with NULL for event context or messaging context
is no longer allowed!

metze
2007-10-10 14:15:17 -05:00
Andrew Bartlett
f814fae400 r17297: Some compilers don't seem to like the ;;
Andrew Bartlett
2007-10-10 14:15:07 -05:00
Stefan Metzmacher
14ecc56343 r17268: change the smb2 session setup to use the new gensec_update_send/recv() api
metze
2007-10-10 14:10:25 -05:00
Simo Sorce
a89cc346b9 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
2007-10-10 14:10:18 -05:00
Stefan Metzmacher
eaccd3c435 r17084: implement SMB2 Cancel in the server,
that makes it possible for clients to cancel
async requests, like NOTIFY...

metze
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
b7418aec33 r17012: don't try to send any data when the socket is gone already...
(fixes crash bugs)

metze
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
24ec382560 r17009: set the protocol version correct
metze
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
156bd4620c r16989: implement SMB2 Notify in the frontend
metze
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
04f0d3d031 r16950: remove the smb mid from the ntvfs layer and keep a list of pending
requests on the smbsrv_connection, to be able to match then on
ntcancel

metze
2007-10-10 14:10:02 -05:00