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

562 Commits

Author SHA1 Message Date
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
de50e0ccdd r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
- parse SMB2 Notify reponse

metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
20311e58d5 r16979: - ntcancel should compare TID,UID,MID and PID
- don't return ntcancel error, as we don't know how signing works
  for them

metze
2007-10-10 14:10:06 -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
ea88c8c99e r16923: remove unused substitude code
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
d41a83d559 r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
the operation doesn't need a valid file handle in that case

metze
2007-10-10 14:10:00 -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
90b0ae53e4 r16889: implement SMB2 Ioctl in the frontend
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
58bed7322c r16875: implement SMB2 Find in the frontend
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
51d59d23a1 r16872: when we know the data length we can preallocate the buffer
and avoid a realloc

metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
283bec8295 r16871: zero padding bytes
(found by valgrind)

metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
1a1fd2747d 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
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
7761a2a595 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
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
78c201db8a r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
3b8ecc19fa r16815: split out search levels which are also used by smb2
metze
2007-10-10 14:09:47 -05:00
Stefan Metzmacher
6326bb901f r16740: just say the directory is empty
metze
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
fa35ddcaf9 r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
metze
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
3b2936a431 r16735: vista beta2 reuses the tcp connect where it does the
SMB negprot

metze
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
58baae8fc4 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
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
9b6f74778f r16733: implement SMB2 SetInfo
metze
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
6d5c74c38c r16732: use the given macros
metze
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
a251e72206 r16731: send a better error code, required for vista-beta2 client
metze
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b3bdd4afde 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
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
f309209629 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
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
f97a21b970 r16699: the layout of SMB2 Read and Write is identical...
so we know that the 9th bytes is just uninitialized padding

metze
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
058c6397a4 r16671: allow usage of smbsrv_pull_passthru_sfileinfo() without,
a smbsrv_request given...

the RENAME level is not supported in this mode, but that will be fixed later

metze
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
1a4978118d r16670: try to match the vista error codes a bit more
metze
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
6908582f68 r16666: implement setting of security_descriptors via SMB2 SetInfo
metze
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
6cd64cb78f r16621: split out passthru levels of setfileinfo
metze
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
70cc992843 r16568: add parsing code for SMB2 SetInfo
metze
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
cdee9b2168 r16520: move smb2srv_break_recv back to fileio.c
metze
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
49b5b3cd58 r16467: implement SMB2 GetInfo server code
metze
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
fdefec1de9 r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to return
0 eas, they should return an error:
NO_EAS_ON_FILE or NO_MORE_EAS

metze
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
6164d1e22e r16464: split client and server min/max protocol settings
metze
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
049ddc8a96 r16457: fix typo
metze
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
44ab067d14 r16456: return on error...
metze
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
316f3312d2 r16450: fix the build...
metze
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
77a711c54a r16449: move some code to a generic place
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
d6d86c65bf r16448: add more error checks
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
e7d339d496 r16444: - split out qfsinfo passthru levels
- use 1 to 1 mapping of interface and wire levels

metze
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
142680ab9b r16443: add push code for SMB2 levels
metze
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
42324c1f63 r16440: split out passthru level into a new functions,
so they can we reused for smb2 later

metze
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
3f8ce6d680 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
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
c4755c83c6 r16407: add parsing code the SMB2 GetInfo in the server
metze
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
708a5d3bf0 r16403: remove dependency to smbsrv_request next part...
metze
2007-10-10 14:09:13 -05:00