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

403 Commits

Author SHA1 Message Date
Stefan Metzmacher
2ea15e9d28 r15802: merge tridge's fix to the SMB2 server
metze
2007-10-10 14:08:24 -05:00
Andrew Tridgell
09a9c7fdff r15799: fixed the problem with BASE-DISCONNECT after the recent memory leak
was fixed
2007-10-10 14:08:22 -05:00
Andrew Tridgell
2e105a32c7 r15796: this talloc_reference() was causing a memory leak on every NTVFS
request. The problem is that the talloc_free() in
smbsrv_send_reply_nosign() frees this reference, but doesn't free the
memory iself, thus leaving it attached to the connection context.

Metze, what was the idea behind this reference? If we need it, then we
need a corresponding talloc_free() to go with it.
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
fdfa6dcc97 r15771: this should be a o32s32 blob
metze
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
c7e8e79d75 r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0

metze
2007-10-10 14:08:16 -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
d0ac0c5af4 r15760: - add RAW_READ_SMB2 => generic mapping
- Implement SMB2 Read

metze
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
41d87ebe35 r15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
- Implement SMB2 Flush

metze
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
5ab6f304f8 r15757: - add RAW_WRITE_SMB2 => generic mapping
- implement SMB2 Write

metze
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
41bc3cfc82 r15754: - implement SMB2 Close
- add RAW_CLOSE_SMB2 generic mapping

metze
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
65b67a8af6 r15753: implement SMB2 Create
metze
2007-10-10 14:08:14 -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
79af05551f r15747: move some functions to the protocol independend part of the
smb server

metze
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
7d2087bd1b r15746: - reorder elements of smb2srv_request
- move SMB2 specific elements to the end

metze
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
0be887c7c6 r15745: - reorder the elements of smbsrv_request
- move the SMB specific elements to the end

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
de7e856a46 r15742: use union smb_sessetup
metze
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
9180635317 r15741: move smb2 request structures into the main smb request structs
as new levels

metze
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
fc20e4154a r15739: return False when the function is called with an invalid level
metze
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
287fc1c22d r15734: This is a major change to the NTVFS subsystem:
- to use a struct ntvfs_handle instead of a uint16_t fnum.
  (to make it independend from the frontend protocol)
- the allocation of handles now is provided by the frontend
  (smbsrv_*) via callbacks and not by each backend module
- this also makes sure that file handles are only passed
  to the ntvfs subsystem when the tcon and session matches,
  so modules can rely on this and need to check this.
- this allows multiple modules in the ntvfs module chain
  to allocate file handles. This can be used for virtual
  files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"...
- also this will make SMB2 with 128 bit file handles possible

metze
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
95bf41b4d4 r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
metze
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
a3799771c8 r15715: add my copyright
metze
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
0ac9a49f42 r15714: fix async handling of ntioctl calls and push the DATA_BLOB into the reply
metze
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
a870c084f6 r15711: - make use of nttrans_setup_reply()
metze
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
6a0c24c73e r15710: - we no longer need to set the nttrans out fields to zero
in the backends
- some whitespace cleanups

metze
2007-10-10 14:08:07 -05:00
Stefan Metzmacher
b21d98a875 r15709: - return an error is better than ignoring a non supported request
- zero nttrans output fields before calling the backends

metze
2007-10-10 14:08:07 -05:00
Stefan Metzmacher
6bc89b422c r15708: setup count is 8bit and param_count and data_count are 32bit
metze
2007-10-10 14:08:07 -05:00
Stefan Metzmacher
3cab02f6f5 r15656: for NT IOCTL's we need to control the max_data field for some calls
metze
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
358d03143f r15640: - NT IOCTL calls also have an 'in' data_blob
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload
  not the SMB payload here

metze
2007-10-10 14:07:25 -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
fac9871122 r15371: Revert some of my previous patch as it was breaking the plain build 2007-10-10 14:05:28 -05:00
Jelmer Vernooij
9a518661fb r15370: Fix more dependencies for shared libs 2007-10-10 14:05:27 -05:00
Jelmer Vernooij
c0ab0f4ed4 r15314: Fix recursive dependency hack for static libs. Should fix the build
on most systems.
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
f0afe9e2ff r15313: Fix some dependencies in dso mode 2007-10-10 14:05:09 -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
Jelmer Vernooij
0654739166 r15301: Use static libraries internally. This required a few hacks in the build
system - these should be removed later on.
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
Jelmer Vernooij
d3106699db r14997: Fix build of static libraries. Libraries build fine now, but linking doesn't
work yet.
2007-10-10 14:03:59 -05:00
Andrew Tridgell
85d70f1c15 r14937: fix a crash that can be caused by a notify triggering during a share
disconnect
2007-10-10 14:00:19 -05:00
Andrew Tridgell
fb91a37e92 r14807: fixed the format of notify responses (forgot to commit this earlier) 2007-10-10 13:59:22 -05:00
Stefan Metzmacher
2c87f210e9 r14739: keep the last request time for the smbsrv_connection,
smbsrv_session and smbsrv_tcon for management tools

metze
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
bac95bb8f4 r14736: - the ntvfs subsystem should not know about smb_server.h
- the process module subsystem should not know about smb_server.h
- the smb_server module should not know about process models

metze
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
fca74f2a4b r14733: SMBtdis needs a TCON and doesn't need a SESSION,
on an invalid tcon it gives NT_STATUS_DOS(ERRSRV, ERRinvnid)

metze
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
9f9240d118 r14647: be a bit less verbose on common stuff
metze
2007-10-10 13:59:04 -05:00
Stefan Metzmacher
94d775c74d r14644: fix SMBecho, used by w2k clients, failing this,
causes an SMBulogoffX and SMBtdis

jelmer: I think this should go into TP2

metze
2007-10-10 13:59:04 -05:00