1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

312 Commits

Author SHA1 Message Date
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
Andrew Tridgell
09a6f728a3 r14937: fix a crash that can be caused by a notify triggering during a share
disconnect
(This used to be commit 85d70f1c150b6c8370deeb188dbf9e87c8b8d7ac)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
11963877ab r14807: fixed the format of notify responses (forgot to commit this earlier)
(This used to be commit fb91a37e926963acfc90fe276a33c7a329a023e8)
2007-10-10 13:59:22 -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
b983fd949b r14733: SMBtdis needs a TCON and doesn't need a SESSION,
on an invalid tcon it gives NT_STATUS_DOS(ERRSRV, ERRinvnid)

metze
(This used to be commit fca74f2a4ba7d4a18801294a6b2be548864a5252)
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
1f2d8319bd r14647: be a bit less verbose on common stuff
metze
(This used to be commit 9f9240d118c66d89a8b51bc54be11828251d0872)
2007-10-10 13:59:04 -05:00
Stefan Metzmacher
d72632ba08 r14644: fix SMBecho, used by w2k clients, failing this,
causes an SMBulogoffX and SMBtdis

jelmer: I think this should go into TP2

metze
(This used to be commit 94d775c74d611e950bb5502bfe7f7c4015c6f772)
2007-10-10 13:59:04 -05:00
Stefan Metzmacher
8ae3773bc4 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
(This used to be commit b5edcde79339be0fec94e440a87c8191cf53e937)
2007-10-10 13:59:03 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00
Stefan Metzmacher
61fa658ebc 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
(This used to be commit 7253153691e35cd206346fbd4e9b9f95c042f602)
2007-10-10 13:58:41 -05:00
Andrew Tridgell
9225c02aee r14539: get rid of a pointless union layer in struct smb_notify
(This used to be commit 1e1c5593817e84c59c1a10b5a3c1957e363e5198)
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
027208806f r14538: ok, I have better used make valgrindtest my self...
the 3 bytes for WordCount and ByteCount are included in MIN_SMB_SIZE...

metze
(This used to be commit 4ff3fb35e88643a4637bfca032a6505f9dce3843)
2007-10-10 13:58:41 -05:00
Stefan Metzmacher
8437d5b891 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
(This used to be commit 3441a4a74fb324a4dfbca13219df4c55ebcfbf6c)
2007-10-10 13:57:37 -05:00
Stefan Metzmacher
d7254a3615 r14523: make async search request possible
metze
(This used to be commit f130632dc58b7afc8270c1bc8a13e3451f8d9ec0)
2007-10-10 13:57:36 -05:00
Stefan Metzmacher
66b2ed2866 r14504: make trans and trans2 able to use async ntvfs backends
tridge: can you review this please

metze
(This used to be commit f2e9b2c3a2304320ac090549815b174887b3e466)
2007-10-10 13:57:35 -05:00
Andrew Bartlett
bae6672ea9 r14502: Supply both needed arguments for the backend logoff processing.
This should fix the segfaults on the build farm.

Metze: please check

Andrew Bartlett
(This used to be commit fb927a71173eba2bd33bbb9ea589b63f5e33b3f2)
2007-10-10 13:57:35 -05:00
Stefan Metzmacher
d3087451c4 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
(This used to be commit 10e627032d7d04f1ebf6efed248c426614f5aa6f)
2007-10-10 13:57:32 -05:00
Stefan Metzmacher
3948fcac49 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
(This used to be commit 742be8e075651c3b7e502ec6da01286fd7a2d4ca)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10 13:57:27 -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
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10 13:57:06 -05:00
Andrew Tridgell
7f0c7702f6 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.
(This used to be commit b78abbbce60ab0009da19a72dd769800c44298a2)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
32b0bb64bc r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
(This used to be commit 180a79d1036e54fc0c50572b820818e9aafa28e9)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
307e43bb56 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
(This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
86497db611 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
(This used to be commit ed9ed1f48f602354810937c0b0de850b44322191)
2007-10-10 13:56:55 -05:00
Andrew Tridgell
9259790df7 r14142: fixed ascii padding of nttrans create in server too
(This used to be commit 2cd4cd1674b7491abf796f625ee098bb2c03e631)
2007-10-10 13:56:54 -05:00
Stefan Metzmacher
1d495bc269 r14041: be a bit less verbose
metze
(This used to be commit 67a42a8097152c23fcd1adab68c64f127ac9c643)
2007-10-10 13:52:38 -05:00
Andrew Tridgell
db45433f31 r14016: use type safe talloc when constructing operation structures in smb server
(This used to be commit 78dd6b3e0cd4f048e9b0317107ceb59198fc2bee)
2007-10-10 13:52:37 -05:00
Andrew Tridgell
276162cc9d r14013: added construction of the notify reply buffer in the nttrans server
code

the RAW-NOTIFY test now passes against the CIFS backend
(This used to be commit e03a2e2de2ad7cd7e692248a681a46ffc1447541)
2007-10-10 13:52:36 -05:00
Andrew Tridgell
418befec18 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.
(This used to be commit 0ad70bfd83b4a03c0e67f11f63822b833be67aa1)
2007-10-10 13:52:36 -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
Andrew Bartlett
107f7b9efa r13911: Make these debug messages clearer.
(This used to be commit 9c8350c64b68c81948e8e09be8316504368a4972)
2007-10-10 13:52:23 -05:00
Stefan Metzmacher
edd5b847bc r13877: remove smbsrv_send_dos_error() and use smbsrv_send_error(..,NT_STATUS_DOS())
metze
(This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
8d91f3dec0 r13872: fix typo
metze
(This used to be commit f28fb440d59401fb8ba5b8eb7868f0063d151693)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
a0e66eac7d r13870: prefix more functions with smbsrv_
metze
(This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
0533fed85a r13868: remove useless talloc_free() wrapper
metze
(This used to be commit bd3162e6a7f154630c2d88be70ce19e8dd977133)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
354a61fc91 r13866: prefix more functions with smbsrv_
metze
(This used to be commit bb083f17c961964dd99185ae4194596ccaafd4a8)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
b58f6e543d r13865: prefix functions with smbsrv_
metze
(This used to be commit 2af96632757ee4bb0261b1871100008b48c5fd4d)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
c14e675260 r13863: this can be static...
metze
(This used to be commit ab659d8ee0de879a54da2308c37da317e0ff7f9a)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
5991787ce6 r13862: rename chain_reply -> smbsrv_chain_reply
metze
(This used to be commit 497b219c7d7ec15d1d25e174a7287b7da8d02403)
2007-10-10 13:52:18 -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
Stefan Metzmacher
1bff329dff 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
(This used to be commit 7f2a6cfd6f9c01d1ff40d35346aba678a7ba77f2)
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
98aa64fa34 r13857: add "Windows for Workgroups 3.1a" support to the server
metze
(This used to be commit 58af0acafd67f919c8df99cacf110ded4bfd2c10)
2007-10-10 13:52:17 -05:00
Andrew Tridgell
72d8e34ddc r13856: fixed a misleading comment
(This used to be commit af6606fe987fd8ef15e3ed03e71e92e7a7484ce7)
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
36098dfda9 r13620: initialize the CMD with 0 too
metze
(This used to be commit 7cf1423bc850aca93453d337b49ba593a034000d)
2007-10-10 13:52:01 -05:00
Andrew Bartlett
941c1566e5 r13403: Try to better handle a case where SPNEGO isn't available (allow us to
emulate the behaviour of XP standalone if required).

Andrew Bartlett
(This used to be commit 7f821097fbdbc9f35d96e05f85cf008f36c0eea3)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
086655dcb6 r13204: Remove extra newline we don't need.
Andrew Bartlett
(This used to be commit 765caa14b340f5111c07eda99fd2bd4c000dd7c7)
2007-10-10 13:51:33 -05:00
Andrew Bartlett
f55ea8bb3d r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
(This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10 13:49:03 -05:00