1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-25 19:33:18 +03:00
Commit Graph

560 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
b5edcde793 r14638: we need to call smbsrv_setup_reply() before using smbsrv_setup_error()
tridge: can you please check if the whole function ok?

jelmer: this fixes a crash bug, when asking for Security Descriptors
        and should be in the TP2

metze
2007-10-10 13:59:03 -05:00
Jelmer Vernooij
51b4270513 r14542: Remove librpc, libndr and libnbt from includes.h 2007-10-10 13:58:42 -05:00
Stefan Metzmacher
7253153691 r14541: separate smbsrv_request and ntvfs_request,
with this it's now possible to write a
ntvfs_test programm like the vfstest in samba3

also smb2 support will be possible later

metze
2007-10-10 13:58:41 -05:00
Andrew Tridgell
1e1c559381 r14539: get rid of a pointless union layer in struct smb_notify 2007-10-10 13:58:41 -05:00
Stefan Metzmacher
4ff3fb35e8 r14538: ok, I have better used make valgrindtest my self...
the 3 bytes for WordCount and ByteCount are included in MIN_SMB_SIZE...

metze
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
3441a4a74f r14526: fix the size of the output buffer, we need 1 byte for the Word count
now smbsrv_setup_reply() and req_setup_chain_reply() do the same thing

tridge: can you please check if this is correct,
        I wonder why we don't got valgrind errors...
	as the over allocation is disabled currently

metze
2007-10-10 13:57:37 -05:00
Stefan Metzmacher
f130632dc5 r14523: make async search request possible
metze
2007-10-10 13:57:36 -05:00
Jelmer Vernooij
e1f896948f r14511: Install more headers 2007-10-10 13:57:35 -05:00
Stefan Metzmacher
f2e9b2c3a2 r14504: make trans and trans2 able to use async ntvfs backends
tridge: can you review this please

metze
2007-10-10 13:57:35 -05:00
Andrew Bartlett
fb927a7117 r14502: Supply both needed arguments for the backend logoff processing.
This should fix the segfaults on the build farm.

Metze: please check

Andrew Bartlett
2007-10-10 13:57:35 -05:00
Stefan Metzmacher
10e627032d r14487: split smbsrv_request into two parts, one will be moved to ntvfs_request
but I don't to get the commit to large, to I'll do this tomorrow...

metze
2007-10-10 13:57:32 -05:00
Stefan Metzmacher
742be8e075 r14485: mark smb commands as need session and need tcon explicit,
so we only need to check in one global place and can't forget
in other places...

metze
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
5709c1c4e1 r14456: don't access the smbsrv_tcon inside the ntvfs modules
metze
2007-10-10 13:57:26 -05:00
Stefan Metzmacher
4df843658f r14447: remove unused stuff
metze
2007-10-10 13:57:26 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Stefan Metzmacher
be6d5298a2 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
2007-10-10 13:57:06 -05:00
Andrew Tridgell
b78abbbce6 r14208: removed use of req->flags2 inside the ntvfs layer. This should help
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
180a79d103 r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
2ef3f59709 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
ed9ed1f48f r14157: - pass a struct ntvfs_request to the ntvfs layer
(for now we just do #define ntvfs_request smbsrv_request,
   but it's the first step...)
- rename ntvfs_openfile() -> ntvfs_open()
- fix the talloc hierachie in some places in the ntvfs_map_*() code

metze
2007-10-10 13:56:55 -05:00
Andrew Tridgell
2cd4cd1674 r14142: fixed ascii padding of nttrans create in server too 2007-10-10 13:56:54 -05:00
Stefan Metzmacher
7ad522c7ac r14096: setup a service task for smbsrv and dcesrv
metze
2007-10-10 13:56:50 -05:00
Stefan Metzmacher
526f20bbec r14079: I just found the setproctitle library from alt linux:-)
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections

metze
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
67a42a8097 r14041: be a bit less verbose
metze
2007-10-10 13:52:38 -05:00
Andrew Tridgell
78dd6b3e0c r14016: use type safe talloc when constructing operation structures in smb server 2007-10-10 13:52:37 -05:00
Andrew Tridgell
e03a2e2de2 r14013: added construction of the notify reply buffer in the nttrans server
code

the RAW-NOTIFY test now passes against the CIFS backend
2007-10-10 13:52:36 -05:00
Andrew Tridgell
0ad70bfd83 r14011: - added a ntvfs_notify op to allow backends to support change notify
- converted the nttrans server side code to be async (needed for change notify)

This is the start of some work on supporting change notify via a new
approach. More soon.
2007-10-10 13:52:36 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00
Stefan Metzmacher
7aabff8298 r13937: fix the build
metze
2007-10-10 13:52:28 -05:00
Jelmer Vernooij
930daa9f41 r13926: More header splitups. 2007-10-10 13:52:26 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Andrew Bartlett
9c8350c64b r13911: Make these debug messages clearer. 2007-10-10 13:52:23 -05:00
Stefan Metzmacher
60d7920527 r13877: remove smbsrv_send_dos_error() and use smbsrv_send_error(..,NT_STATUS_DOS())
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
f28fb440d5 r13872: fix typo
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
e6275db7b9 r13870: prefix more functions with smbsrv_
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
bd3162e6a7 r13868: remove useless talloc_free() wrapper
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
bb083f17c9 r13866: prefix more functions with smbsrv_
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
2af9663275 r13865: prefix functions with smbsrv_
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
ab659d8ee0 r13863: this can be static...
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
497b219c7d r13862: rename chain_reply -> smbsrv_chain_reply
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
d1bae931b3 r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requests
- the default max protocol is still NT1

metze
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
7f2a6cfd6f r13858: - use req_pull_ascii4() instead of doing strlen() on client provided buffers
- also terminate the connection if we don't support any protocol the client
  provides

metze
2007-10-10 13:52:17 -05:00