Stefan Metzmacher
e8b61d7cc8
r16872: when we know the data length we can preallocate the buffer
...
and avoid a realloc
metze
(This used to be commit 51d59d23a1179689bda7cd1ab8cc43de31ad4f24)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7
r16870: copy over the status from the ntvfs request to the smb2 request
...
so that smb2srv_setup_reply() doesn't push uninitialized data
(found by valgrind)
metze
(This used to be commit 1a1fd2747d12663ff1084a3bc85e85c74188edb7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491
r16869: - if we know the blob length, we can preallocated the memory
...
and avoid a realloc in smb2_push_*
- don't overwrite the first data byte
metze
(This used to be commit 7761a2a595720e30f2a38448761ca77077908be7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
21af3847a6
r16740: just say the directory is empty
...
metze
(This used to be commit 6326bb901fa2daa358f865f77c110096a1764126)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c
r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
...
metze
(This used to be commit fa35ddcaf9bbeaa4780aa3497cdff56b02af0ab9)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
6acd9aed93
r16734: the 2 bytes after the opcode and before the flags,
...
is no padding...
the following patch is needed for vista beta2 to connect to samba4
metze
(This used to be commit 58baae8fc463cd2c4e4ce532c153ad80313b03eb)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
a18fc61d4f
r16733: implement SMB2 SetInfo
...
metze
(This used to be commit 9b6f74778f8db2fa18bb56dcbc6bd8168a882ac9)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b20c00f718
r16732: use the given macros
...
metze
(This used to be commit 6d5c74c38ca4d4a605b619cd7cbbd7e1dccd6b0c)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
2f60a2bc7a
r16731: send a better error code, required for vista-beta2 client
...
metze
(This used to be commit a251e722063486448005a95d0b44201b5f3a7620)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
63d0c5a057
r16708: the packet format of SMB2 SessionSetup has changed,
...
there're 8 more unknown bytes...
Note:
- vista-CTP also support this as a server,
but uses the old format as client
- but vista-beta2 only uses and accept the new format
metze
(This used to be commit b3bdd4afdefc9ad3550f86a0aa6e6c90bf8ab416)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
bd0dcebe36
r16705: fix a bug found by valgrind...
...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)
metze
(This used to be commit f309209629ad1b63a76fc06163a3eeb07dce4c86)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae
r16699: the layout of SMB2 Read and Write is identical...
...
so we know that the 9th bytes is just uninitialized padding
metze
(This used to be commit f97a21b970ed23973cced2c67b5bc9ecd7afee88)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
826597bfa8
r16670: try to match the vista error codes a bit more
...
metze
(This used to be commit 1a4978118d27e978c04997869a307b793582917b)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
bcc9e8af30
r16666: implement setting of security_descriptors via SMB2 SetInfo
...
metze
(This used to be commit 6908582f68478d5f702159f6b01934ffff3a95f0)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
ca044dcd3a
r16568: add parsing code for SMB2 SetInfo
...
metze
(This used to be commit 70cc9928437d6edab3de5a858078870f510398d0)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
74fe06832a
r16520: move smb2srv_break_recv back to fileio.c
...
metze
(This used to be commit cdee9b2168da47a38da769eb2b4f403bc4699dfe)
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
98024a8125
r16467: implement SMB2 GetInfo server code
...
metze
(This used to be commit 49b5b3cd58c41b67adfbb77b4244989fba6bcd2e)
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
74d58ab06f
r16456: return on error...
...
metze
(This used to be commit 44ab067d146503bd1cc008cf01c08b91fb14b204)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
f8dc3bbf9f
r16410: remove some warnings of talloc_steal() usage without target
...
I only commit this as this is used in a global macro
tridge: we should try to get rid of this warning without using
(void)talloc_steal(ctx, ptr);
everywhere!!!
metze
(This used to be commit 3f8ce6d680b0c86abc698b8f9c6d8840da3ffd35)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
1fd1e2ba58
r16407: add parsing code the SMB2 GetInfo in the server
...
metze
(This used to be commit c4755c83c61c0cc822c69cd274056ec20ba66fdb)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
184c28844d
r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
...
metze
(This used to be commit aa98aad0975e59fc8cf56c624f728b33ab54e099)
2007-10-10 14:08:25 -05:00
Stefan Metzmacher
c51dfa7926
r15802: merge tridge's fix to the SMB2 server
...
metze
(This used to be commit 2ea15e9d28bca358989a565576ea7e8d9462e924)
2007-10-10 14:08:24 -05:00
Stefan Metzmacher
6ba94bb12f
r15771: this should be a o32s32 blob
...
metze
(This used to be commit fdfa6dcc97b6f7d61159497df2e214163d308649)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
1911475976
r15770: when there's a dynamic body, we need to send the first byte even if the
...
dynamic size if 0
metze
(This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e0dcbe8dd1
r15769: this functions belong to params/ so move it.
...
metze
(This used to be commit 9c4c40772bfd8a8324cd086c2234451d164be5d0)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e23cc70a72
r15760: - add RAW_READ_SMB2 => generic mapping
...
- Implement SMB2 Read
metze
(This used to be commit d0ac0c5af44ba5aa8b18106c2ac26c0d194e59b4)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
49012954d0
r15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
...
- Implement SMB2 Flush
metze
(This used to be commit 41d87ebe355cd34d35a93d1e90cd2680363cb5d3)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
772c492840
r15757: - add RAW_WRITE_SMB2 => generic mapping
...
- implement SMB2 Write
metze
(This used to be commit 5ab6f304f8b91c0362fd57429cc24126b241bd51)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
183fb2bd4b
r15754: - implement SMB2 Close
...
- add RAW_CLOSE_SMB2 generic mapping
metze
(This used to be commit 41bc3cfc822bfc2fe4413f93a180fc4507005282)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
c2c5f78f11
r15753: implement SMB2 Create
...
metze
(This used to be commit 65b67a8af6b661fe6eeabf45563c6aba12a6660a)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
3cb64219e2
r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
...
metze
(This used to be commit 6c304a1a5f5dc6b2d3774682303874444a59b07d)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
476a6253a6
r15749: - pass in a dummy oplock callback
...
- pass in SMB2 ntvfs_handle callbacks
metze
(This used to be commit 338aee88d4ba3b25b473a456e55dd7ff5c1a4c5d)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
7442613a53
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
(This used to be commit 4ae4a742fc2e40b2937d9ce01f2e45f43f7ff1c3)
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
607e97bef0
r15746: - reorder elements of smb2srv_request
...
- move SMB2 specific elements to the end
metze
(This used to be commit 7d2087bd1b5036f79e205d6e17f2bca78576299e)
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
44dc58fe16
r15743: use union smb_tcon
...
metze
(This used to be commit 012a08cfb9d550a47bed49b18335a038ae19605c)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
681a7f21e2
r15742: use union smb_sessetup
...
metze
(This used to be commit de7e856a464c1c986be3687a7b97527b734240ce)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
5761c59ef7
r15535: fix the build
...
metze
(This used to be commit 297868325f305c652b14023a698099d5b358d70a)
2007-10-10 14:05:55 -05:00
Stefan Metzmacher
bd6dd99eb9
r15533: with this vista does a fine SMB2 TreeConnect against samba4
...
metze
(This used to be commit 6c920d21a16e88040818cc8db6ebe918b5669a9b)
2007-10-10 14:05:54 -05:00
Stefan Metzmacher
dc86ab3e45
r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
...
also if the dynamic flag should be set
metze
(This used to be commit 7829100e1ee79f4f5d24004af221288e19c09b3e)
2007-10-10 14:05:54 -05:00
Jelmer Vernooij
0199eac20d
r15314: Fix recursive dependency hack for static libs. Should fix the build
...
on most systems.
(This used to be commit c0ab0f4ed49d88807d07b1504574ca35542e2943)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
9220144604
r15313: Fix some dependencies in dso mode
...
(This used to be commit f0afe9e2ff16515df1b3226b479b19ea3e9c3d0c)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
bc141c7957
r15304: Fix smbd build, more updates on getting --enable-dso to build again
...
(This used to be commit 3ef9326386ba1c210166302cbcf02d2ed3f19944)
2007-10-10 14:05:08 -05:00
Jelmer Vernooij
b00c236906
r15301: Use static libraries internally. This required a few hacks in the build
...
system - these should be removed later on.
(This used to be commit 06547391669e064d2b92f5841b7df5f101a34cb9)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
0eddf14b30
r15191: Avoid uint_t as it's not standard.
...
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10 14:04:15 -05:00
Stefan Metzmacher
316269a075
r14739: keep the last request time for the smbsrv_connection,
...
smbsrv_session and smbsrv_tcon for management tools
metze
(This used to be commit 2c87f210e9e68de42dc45ca6532f3f33f4b6ce95)
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
2e7df84576
r14456: don't access the smbsrv_tcon inside the ntvfs modules
...
metze
(This used to be commit 5709c1c4e1a561dd9af98cfefbbbdac9b18765b7)
2007-10-10 13:57:26 -05:00
Jelmer Vernooij
e3f2414cf9
r14380: Reduce the size of structs.h
...
(This used to be commit 1a16a6f1dfa66499af43a6b88b3ea69a6a75f1fe)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
ceb6e9717b
r13960: Generate makefile rules for installing/removing shared modules.
...
(This used to be commit 2c746980328431ab04852dc668899e3eb042da99)
2007-10-10 13:52:32 -05:00
Stefan Metzmacher
d8503c6ba1
r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requests
...
- the default max protocol is still NT1
metze
(This used to be commit d1bae931b327dda28e648efc473e0462cf036f7c)
2007-10-10 13:52:17 -05:00