Stefan Metzmacher
a3797ff66a
r16875: implement SMB2 Find in the frontend
...
metze
(This used to be commit 58bed7322c
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
7c810db7da
r16873: - grow the buffer with the correct size, we maybe had 1 byte preallocated
...
- body_size doesn't contain the preallocated byte so don't remove it
metze
(This used to be commit 3cf50e26b7
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
bb158b74da
r16871: zero padding bytes
...
(found by valgrind)
metze
(This used to be commit 283bec8295
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
af0a9eb529
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
(This used to be commit 78c201db8a
)
2007-10-10 14:09:49 -05:00
Günther Deschner
91e4f9f6d8
r16801: Adding WERR_DS_DRA_ACCESS_DENIED.
...
Guenther
(This used to be commit 075242b976
)
2007-10-10 14:09:46 -05:00
Rafal Szczesniak
464e352380
r16791: Typo fix in a comment.
...
rafal
(This used to be commit 48a9f82244
)
2007-10-10 14:09:46 -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 58baae8fc4
)
2007-10-10 14:09:42 -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 b3bdd4afde
)
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 f309209629
)
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 f97a21b970
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
bd1efc1235
r16669: this calls don't expect any valid error codes than NT_STATUS_OK
...
metze
(This used to be commit 429215113b
)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
332f5b19a1
r16667: - use ndr_pull_struct_blob() to make the RAW_FILEINFO_SEC_DESC pull code
...
simpler
- use ndr_push_struct_blob() for RAW_SFILEINFO_SEC_DESC
metze
(This used to be commit 79e51f033e
)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
0646a91bc9
r16569: - use push_string()
...
metze
(This used to be commit f099fcb6e3
)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
7dc22bf3e0
r16566: add pull function for a site32/offset32 blob
...
metze
(This used to be commit 81702c36c2
)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
7bf085571e
r16464: split client and server min/max protocol settings
...
metze
(This used to be commit 6164d1e22e
)
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
d3b3436ce1
r16406: use the generic smb_handle in smb2_getinfo/smb2_setinfo
...
metze
(This used to be commit dcc02df829
)
2007-10-10 14:09:13 -05:00
Gerald Carter
e3a6c6be79
r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar
...
(This used to be commit 26a2fa97e4
)
2007-10-10 14:08:59 -05:00
Volker Lendecke
7613015f47
r16091: Without this patch Samba3 will not accept this, and simply setting the "92" to
...
"100" will give funny permissions...
Volker
(This used to be commit b76a3d4f59
)
2007-10-10 14:08:59 -05:00
Andrew Bartlett
c38f24b021
r16073: On an incoming wildcard search, it is critical that the size be
...
correct, or we try and do a memcmp on the trailing '\0'.
This happens because we now use memcmp for the prefix matching.
I just wish I had a test other than a particular invocation of the OSX
client. (I've tried and failed so far)
Andrew Bartlett
(This used to be commit 36aa839080
)
2007-10-10 14:08:57 -05:00
Andrew Tridgell
971d30bb20
r15854: more talloc_set_destructor() typesafe fixes
...
(This used to be commit 61c6100617
)
2007-10-10 14:08:32 -05:00
Andrew Tridgell
0b56e916a7
r15835: fixed locking in the client library
...
(This used to be commit 7ea51fb624
)
2007-10-10 14:08:31 -05:00
Andrew Tridgell
e5e9bcd398
r15834: fixed a memory leak in the session code
...
(This used to be commit 8a7047c102
)
2007-10-10 14:08:30 -05:00
Stefan Metzmacher
e982523bc0
r15820: this line was just for testing
...
metze
(This used to be commit 1a9bfa2ac9
)
2007-10-10 14:08:28 -05:00
Stefan Metzmacher
a2f463bb3a
r15815: add SMB2 Lock client code
...
metze
(This used to be commit 4a307d7185
)
2007-10-10 14:08:27 -05:00
Stefan Metzmacher
d9bdfb0a07
r15814: add SMB2 Lock interface structure
...
metze
(This used to be commit 8f1850ef65
)
2007-10-10 14:08:27 -05:00
Andrew Tridgell
79183f68fc
r15794: fixed a problem with DOS status codes - found by kukks (thanks!)
...
(This used to be commit 1a57b16715
)
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
39fd6db42b
r15775: add some privilege related WERROR codes
...
metze
(This used to be commit 4e8c9bbd76
)
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 c7e8e79d75
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
26047265cc
r15756: handle RAW_OPEN_SMB2
...
metze
(This used to be commit 8aebd7adc9
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
6885c6253e
r15744: convert_string_talloc() handles src_len == 0 as error
...
but it's valid in this case
metze
(This used to be commit 92c19b1ba4
)
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
e306c5bf12
r15741: move smb2 request structures into the main smb request structs
...
as new levels
metze
(This used to be commit 9180635317
)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
2de1d5f7a8
r15740: add TODO, that we should check if the server supports
...
large offsets, before sending large offset requests
metze
(This used to be commit b9ba2b8c5a
)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
b77eaaa3bc
r15737: fix a typos and comment
...
metze
(This used to be commit 1f50b2e053
)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
7f0e17e903
r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
...
metze
(This used to be commit 95bf41b4d4
)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
c18cd54bad
r15688: windows sends 4 as max_setup count on NT IOCTL
...
metze
(This used to be commit 0d983fa46f
)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
edee7dd8fd
r15661: add NT_STATUS_OBJECTID_NOT_FOUND
...
metze
(This used to be commit 2c9db94291
)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
5ff4b74df3
r15656: for NT IOCTL's we need to control the max_data field for some calls
...
metze
(This used to be commit 3cab02f6f5
)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
7e7a760b4b
r15643: add some FSCTL_ codes
...
metze
(This used to be commit 47dc1ed253
)
2007-10-10 14:07:26 -05:00
Stefan Metzmacher
410fb90322
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
(This used to be commit 358d03143f
)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
bb58d8497a
r15638: add a usefull macro to get a pointer the smb_handle union
...
of smb_open, as it's not nicely alligned for all levels,
If someone has an idea for a better solution where we can access
it via op->generic.out.file.* please let me know:-)
metze
(This used to be commit d0a7408280
)
2007-10-10 14:07:25 -05:00
Jelmer Vernooij
172a83d724
r15573: Fix build of systems that have iconv headers in non-standard locations
...
Split of system/locale.h header from system/iconv.h
Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6
)
2007-10-10 14:05:58 -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 7829100e1e
)
2007-10-10 14:05:54 -05:00
Stefan Metzmacher
c3958aa231
r15505: - add 'generic' alias to smb_seek and smb_flush
...
- add struct ntvfs_handle pointer to smb_file, this will
later be used by the ntvfs backends
metze
(This used to be commit 8322fc70ad
)
2007-10-10 14:05:43 -05:00
Jelmer Vernooij
b56789c349
r15457: Get rid of more usages of uint_t
...
(This used to be commit 849818dcde
)
2007-10-10 14:05:37 -05:00
Andrew Bartlett
5d689a5de2
r15416: Point out that this doesn't work, but for servers this old, I just
...
don't care...
Andrew Bartlett
(This used to be commit 8abe7ba619
)
2007-10-10 14:05:35 -05:00
Andrew Bartlett
ed752c8004
r15415: Use Jelmer's new credentials 'wrong password' code to give the user 3
...
attempts for the password, when talking to a remote CIFS server.
Andrew Bartlett
(This used to be commit 3a4ddc8f59
)
2007-10-10 14:05:34 -05:00
Andrew Bartlett
742c110cd6
r15400: Move the TLS code behind the socket interface.
...
This reduces caller complexity, because the TLS code is now called
just like any other socket. (A new socket context is returned by the
tls_init_server and tls_init_client routines).
When TLS is not available, the original socket is returned.
Andrew Bartlett
(This used to be commit 09b2f30dfa
)
2007-10-10 14:05:32 -05:00
Tim Potter
49994442bb
r15397: Fix typo.
...
(This used to be commit 74bd8170fc
)
2007-10-10 14:05:32 -05:00
Tim Potter
0b673b7999
r15395: Fix build by adding another copy of the Python detection m4 fragment.
...
This stuff should be common somewhere.
(This used to be commit e906781cbd
)
2007-10-10 14:05:32 -05:00
Tim Potter
ce3293c5b6
r15391: Wrap up the nbt_name_query() function as a bit of an experiment. It
...
seemed to work quite well and this technique might be good for
generating an interface to use for automated testing.
Tested by doing a nbt lookup against smbd.
(This used to be commit 11150b3140
)
2007-10-10 14:05:32 -05:00