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

34 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
Andrew Tridgell
cf109460af 3 places where the VFS backend doesn't handle NULL strings. 2008-02-18 14:54:14 +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
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
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
c9651e2c5c r25551: Convert to standard bool type. 2007-10-10 15:07:54 -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
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
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
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
3d849f9d25 r17360: add some comments
metze
2007-10-10 14:15:19 -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
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
Stefan Metzmacher
ae9c007324 r16913: better return the same values as vista beta2
metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
b42d918d56 r16912: I messed up the numbers for ipc and print shares...
This caused vista beta2 to not do any rpc calls
against samba4

metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
7db393e5ea r16911: the TID is only 32 bits...don't overwrite parts of the UID field
metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
27087818c7 r16910: - don't search the wildcard handle
(a handle with all bits set to 1 is justed for some
   SMB2 Ioctl calls...)
- don't crash if we didn't find the tcon

metze
2007-10-10 14:09:58 -05:00
Stefan Metzmacher
6d5c74c38c r16732: use the given macros
metze
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
9c4c40772b r15769: this functions belong to params/ so move it.
metze
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
6c304a1a5f r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
metze
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
338aee88d4 r15749: - pass in a dummy oplock callback
- pass in SMB2 ntvfs_handle callbacks

metze
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
4ae4a742fc r15748: - implement SMB2 TreeConnect server code
TODO: pass in oplock and handle callbacks, but as we don't do file access
      yet, it's no problem to skip them

metze
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
012a08cfb9 r15743: use union smb_tcon
metze
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
297868325f r15535: fix the build
metze
2007-10-10 14:05:55 -05:00
Stefan Metzmacher
6c920d21a1 r15533: with this vista does a fine SMB2 TreeConnect against samba4
metze
2007-10-10 14:05:54 -05:00
Stefan Metzmacher
7829100e1e r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
also if the dynamic flag should be set

metze
2007-10-10 14:05:54 -05:00
Jelmer Vernooij
3ef9326386 r15304: Fix smbd build, more updates on getting --enable-dso to build again 2007-10-10 14:05:08 -05:00
Stefan Metzmacher
5709c1c4e1 r14456: don't access the smbsrv_tcon inside the ntvfs modules
metze
2007-10-10 13:57:26 -05:00
Stefan Metzmacher
4d527ac005 r12102: for SMB2 we need to allocate tcons per session
metze
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
cb9ddf7997 r12094: - implement dummy smb2srv_tcon()
- implement smb2srv_tdis()

metze
2007-10-10 13:47:08 -05:00
Stefan Metzmacher
08b31d5f61 r11789: - add the start of a SMB2 server
- it does Negprot and SessionSetup yet
  the rest returns NT_STATUS_NOT_IMPLEMENTED
- it's off by default, enable with:
  smbsrv:enable smb2 = yes
- negotition in the SMB Negprot isn't supported yet
- it's only tested with smbtorture SMB2-CONNECT
  not with vista as client

metze
2007-10-10 13:46:28 -05:00