Stefan Metzmacher
4bfe900d1b
r22381: fix memory leak
...
metze
2007-10-10 14:51:11 -05:00
Andrew Tridgell
fa3c9b29ae
r21206: - a couple more nttrans places were a memcpy() should be used
...
- changed the setup array in nttrans to be a uint8 array, instead of a
uint16 array. This makes it clearer that it is the job of the caller
to do any byte swapping within that data
2007-10-10 14:44:45 -05:00
Volker Lendecke
f2d364ebe6
r21183: Commit the big/little endian fix for nttrans setup[] handling.
...
Please check!
For code symmetry reasons, trans2 might also see this fix, but this is left to
the interested reader :-)
Volker
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
ddf6c90159
r20657: fix compiler warning and bug:-)
...
metze
2007-10-10 14:37:27 -05:00
Andrew Tridgell
2365abaa99
r20646: first preparations for cluster enablement. This changes "
...
uint32_t server_id
to
struct server_id server_id;
which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Andrew Bartlett
2b569c42e0
r19598: Ahead of a merge to current lorikeet-heimdal:
...
Break up auth/auth.h not to include the world.
Add credentials_krb5.h with the kerberos dependent prototypes.
Andrew Bartlett
2007-10-10 14:25:00 -05:00
Andrew Tridgell
8b9359aa7d
r19505: fixed a valgrind error
2007-10-10 14:24:40 -05:00
Andrew Tridgell
c5423ea22b
r19504: - fixed a free error in file_lines_parse
...
- added a function to test for large file support
- enable CAP_LARGE_FILES only if the test passes
- don't test at large offsets if the server doesn't set
CAP_LARGE_FILES
2007-10-10 14:24:40 -05:00
Andrew Tridgell
be70992d71
r18972: we don't need this now all builds in the build farm are limited to 150
...
file descriptors. We'll pretty quickly find leaks :)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
d3f0114a9d
r18839: align all directory search blobs on an 8 byte boundary to keep the
...
current vista release happy.
2007-10-10 14:20:14 -05:00
Volker Lendecke
14b88fefa0
r18686: Fix typo protocl->protocol
2007-10-10 14:19:02 -05:00
Andrew Tridgell
83bf458ec9
r18583: a nasty hack to allow me to monitor the number of open file
...
descriptors in smbd on all build farm machines. I suspect we have a fd
leak somewhere, but its hard to track down.
I know part of the problem is the number of (fake) network interfaces
we define in the build farm tests, with each of them listening on a
whole bunch of different protocol ports. That chews up around 48 file
descriptors just to startup. I don't think thats the real problem
though, and I suspect something else is leaking file descriptors on
some hosts.
2007-10-10 14:18:51 -05:00
Andrew Tridgell
eba6c84eff
r18301: I discovered how to load the warnings from a build farm build into
...
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
2007-10-10 14:18:04 -05:00
Andrew Tridgell
fe209e360e
r18211: wct is not a size, so don't use size_t
...
this should fix a pile of printf format warnings
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
f7afa1cb77
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
f20e251bfd
r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
...
configure check for the interfaces.
should fix the build on some old sun boxes
metze
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
8a5bc18c5a
r17361: check that file handles are only accessable
...
by the correct session in the SMB frontend server
metze
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
3d849f9d25
r17360: add some comments
...
metze
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
679ac74e71
r17341: pass a messaging context to auth_context_create()
...
and gensec_server_start().
calling them with NULL for event context or messaging context
is no longer allowed!
metze
2007-10-10 14:15:17 -05:00
Andrew Bartlett
f814fae400
r17297: Some compilers don't seem to like the ;;
...
Andrew Bartlett
2007-10-10 14:15:07 -05:00
Stefan Metzmacher
216e02c69c
r17283: use the async calls of auth_check_password() and gensec_update()
...
in the smb server.
metze
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
c70edc3fb8
r17280: NT_STATUS_INVALID_HANDLE maps to ERRbadfid, which is wrong in this
...
places, so only overwrite ERRbaduid and ERRinvnid when NTSTATUS support
is given.
metze
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
699dee70aa
r17274: fix typos
...
metze
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
14ecc56343
r17268: change the smb2 session setup to use the new gensec_update_send/recv() api
...
metze
2007-10-10 14:10:25 -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
eaccd3c435
r17084: implement SMB2 Cancel in the server,
...
that makes it possible for clients to cancel
async requests, like NOTIFY...
metze
2007-10-10 14:10:12 -05:00
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