Andrew Tridgell
dc74e0fad6
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit 3ab9abf406
)
2008-04-17 15:21:08 +02:00
Andrew Tridgell
11703b2986
fix the overflow/wrap checks in Samba4 for new gcc optimisation behavior
...
The approach I have used is as set out in
https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array
(This used to be commit 92d5fb531d
)
2008-04-17 15:20:39 +02:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Stefan Metzmacher
903ea3d36d
smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer
...
metze
(This used to be commit 80711c03e0
)
2008-03-11 20:16:51 +01:00
Amin Azez
17af5a9f42
Use 32 bit storage for nttrans counts
...
Erroneous 16bit storage for nttrans counts meant that nttrans behaved
"strangely" for sizes of over 64K
As 32 bit is used in the SMB message and specified in
http://us4.samba.org/samba/ftp/specs/draft-leach-cifs-v1-spec-02.txt
section 3.13.2
this fix changes storage to match.
Signed-off-by: Amin Azez <azez@ufomechanic.net>
(This used to be commit d66b6c3823
)
2008-03-07 12:10:48 +01:00
Stefan Metzmacher
87f2925252
ntvfs: pass down the client capabilities into the ntvfs layer
...
Note that we don't use any protocol specific values here.
For now only NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS is defined
others should be defined, when we find out that the ntvfs
layer needs to know about it.
metze
(This used to be commit cc42cd5f67
)
2008-03-06 16:31:25 +01:00
Jelmer Vernooij
10169a2030
Remove more global_loadparm instance.s
...
(This used to be commit a1280252ce
)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
80cbff3d01
Fix build with partial linking.
...
(This used to be commit bfad9610c4
)
2008-02-18 16:02:33 +01:00
Jelmer Vernooij
e33177001c
Remove type before variables in data.mk
...
(This used to be commit 3c1a7c0dcc
)
2008-02-14 12:03:34 +01:00
Andrew Tridgell
839ab724dc
Fixed SMB2 rename operations from Vista clients
...
We needed a flag in bufinfo to mark packets as SMB2, as it seems that
SMB2 uses a different format for the RenameInformation buffer than SMB
does
Also handle the fact that SMB2 clients give the full path to the
target file in the rename, not a relative path
(This used to be commit 52d7972d95
)
2008-02-14 12:30:31 +11:00
Andrew Tridgell
e870cfec9f
Convert SMB and SMB2 code to use a common buffer handling structure
...
This converts our SMB and SMB2 code to use a common structure "struct
request_bufinfo" for information on the buffer bounds of a packet,
alignment information and string handling. This allows us to use a
common backend for SMB and SMB2 code, while still using all the same
string and blob handling functions.
Up to now we had been passing a NULL req handle into these common
routines from the SMB2 side of the server, which meant that we failed
any operation which did a bounds checked string extraction (such as a
RenameInformation setinfo call, which is what Vista uses for renaming
files)
There is still some more work to be done on this - for example we can
now remove many of the SMB2 specific buffer handling functions that we
had, and use the SMB ones.
(This used to be commit ca6d9be6cb
)
2008-02-14 10:12:33 +11:00
Andrew Tridgell
ccc27e681c
fixed up the .in side of SMB2 negprot
...
fixed the input side of the SMB2 negprot structure and parsers according to the documentation
(This used to be commit 55af8acc7b
)
2008-02-12 12:54:44 +11:00
Amin Azez
a72a4efa69
Fix sending of large nttrans responses.
...
req_grow_data was growing the original req, not this_req which
was being used for the current fragment.
(This used to be commit 2ac47f5ab6
)
2008-02-01 06:36:32 +01:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98
)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
c260454229
r26504: Don't rely on system-provided kerberos headers.
...
(This used to be commit c4b1df0476
)
2007-12-21 05:51:07 +01:00
Jelmer Vernooij
a2cea02584
r26430: require explicit specification of loadparm context.
...
(This used to be commit 1b947fe0e6
)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7ab
)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
a72c5053c5
r26353: Remove use of global_loadparm.
...
(This used to be commit 17637e4490
)
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
5c6eacdb04
r26350: More tests.
...
(This used to be commit 87799f55d5
)
2007-12-21 05:48:55 +01:00
Jelmer Vernooij
39ee38d9c1
r26316: Use contexts for conversion functions.
...
(This used to be commit f6420d933b
)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
b83a7a135f
r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection.
...
(This used to be commit 7c00866423
)
2007-12-21 05:47:47 +01:00
Jelmer Vernooij
1fbdd6ef1d
r26264: pass name resolve order explicitly, use torture context for settings in dssync tests.
...
(This used to be commit c7eae1c784
)
2007-12-21 05:47:39 +01:00
Jelmer Vernooij
ecea5ce245
r26260: Store loadparm context in gensec context.
...
(This used to be commit b9e3a4862e
)
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
6c999cd123
r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
...
(This used to be commit 5b29ef7c03
)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
181aab56d5
r26221: Add loadparm_context parameter to auth_context_create.
...
(This used to be commit a9a9634df8
)
2007-12-21 05:46:58 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
0c56f8dac3
r25551: Convert to standard bool type.
...
(This used to be commit c9651e2c5c
)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Stefan Metzmacher
113587b823
r24494: add comment to remind me to look at the flags on a tconx
...
metze
(This used to be commit deefefeadf
)
2007-10-10 15:02:02 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Andrew Bartlett
222c6dd781
r23680: Make it easier to setup a domain member server - the 'server role'
...
will now control the auth methods, but an override is still available,
ex:
auth methods:domain controller = <methods>
Andrew Bartlett
(This used to be commit b7e727186e
)
2007-10-10 14:59:00 -05:00
Stefan Metzmacher
42c1ef4025
r23067: use 'const union smb_search_data *file' also in the server code to get rid
...
of compiler warnings in the cifs backend
metze
(This used to be commit 34ef07b1f5
)
2007-10-10 14:52:47 -05:00
Andrew Tridgell
d3e28ccd48
r23020: a better fix for the memory leak - this one doesn't stuff up spnego :)
...
(This used to be commit 9a8da730a7
)
2007-10-10 14:52:40 -05:00
Andrew Tridgell
b691b4ad3d
r23019: revert r23018 - this will require more thought.
...
(This used to be commit df60df9678
)
2007-10-10 14:52:40 -05:00
Andrew Tridgell
a8716afce8
r23018: fixed a memory leak in our server side session setup code for failed
...
session setups
(This used to be commit a4e043e1f8
)
2007-10-10 14:52:39 -05:00
Stefan Metzmacher
6bf99b9e85
r22774: correctly initialize the smbsrv_connection when switching to SMB2
...
metze
(This used to be commit 0fa4eb7323
)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
c13a4084f2
r22381: fix memory leak
...
metze
(This used to be commit 4bfe900d1b
)
2007-10-10 14:51:11 -05:00
Andrew Tridgell
21650cf377
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
(This used to be commit fa3c9b29ae
)
2007-10-10 14:44:45 -05:00
Volker Lendecke
2342219d69
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
(This used to be commit f2d364ebe6
)
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
9320521cb5
r20657: fix compiler warning and bug:-)
...
metze
(This used to be commit ddf6c90159
)
2007-10-10 14:37:27 -05:00
Andrew Tridgell
1cd4339b9a
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.
(This used to be commit 2365abaa99
)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
13dbee3ffe
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
(This used to be commit 2b569c42e0
)
2007-10-10 14:25:00 -05:00
Andrew Tridgell
6fbbef77e6
r19505: fixed a valgrind error
...
(This used to be commit 8b9359aa7d
)
2007-10-10 14:24:40 -05:00
Andrew Tridgell
9cd2b012f3
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
(This used to be commit c5423ea22b
)
2007-10-10 14:24:40 -05:00
Andrew Tridgell
5d31bce8b6
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 :)
(This used to be commit be70992d71
)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
d01bbe6842
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.
(This used to be commit 83bf458ec9
)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
30ee8beb93
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.
(This used to be commit eba6c84eff
)
2007-10-10 14:18:04 -05:00
Jelmer Vernooij
0329d755a7
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)
(This used to be commit f7afa1cb77
)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
2c4eece604
r17361: check that file handles are only accessable
...
by the correct session in the SMB frontend server
metze
(This used to be commit 8a5bc18c5a
)
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
7a845bcb01
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
(This used to be commit 679ac74e71
)
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
1575743c36
r17283: use the async calls of auth_check_password() and gensec_update()
...
in the smb server.
metze
(This used to be commit 216e02c69c
)
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
9a067547ec
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
(This used to be commit c70edc3fb8
)
2007-10-10 14:15:05 -05:00
Stefan Metzmacher
61d620012d
r17274: fix typos
...
metze
(This used to be commit 699dee70aa
)
2007-10-10 14:10:26 -05:00
Simo Sorce
9c66f601f1
r17206: Add a modular API for share configuration.
...
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9
)
2007-10-10 14:10:18 -05:00
Stefan Metzmacher
39b7ae11ac
r17012: don't try to send any data when the socket is gone already...
...
(fixes crash bugs)
metze
(This used to be commit b7418aec33
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a8958391e8
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
(This used to be commit de50e0ccdd
)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
e6b29409a2
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
(This used to be commit 20311e58d5
)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
3b36a85798
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
(This used to be commit 04f0d3d031
)
2007-10-10 14:10:02 -05:00
Stefan Metzmacher
54fba07f01
r16923: remove unused substitude code
...
metze
(This used to be commit ea88c8c99e
)
2007-10-10 14:10:01 -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
Stefan Metzmacher
fbf566b777
r16815: split out search levels which are also used by smb2
...
metze
(This used to be commit 3b8ecc19fa
)
2007-10-10 14:09:47 -05:00
Stefan Metzmacher
2400ebc428
r16735: vista beta2 reuses the tcp connect where it does the
...
SMB negprot
metze
(This used to be commit 3b2936a431
)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
f8d8454461
r16621: split out passthru levels of setfileinfo
...
metze
(This used to be commit 6cd64cb78f
)
2007-10-10 14:09:36 -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
23803094e5
r16449: move some code to a generic place
...
metze
(This used to be commit 77a711c54a
)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
47a78861bc
r16448: add more error checks
...
metze
(This used to be commit d6d86c65bf
)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
0f29d9fb3f
r16444: - split out qfsinfo passthru levels
...
- use 1 to 1 mapping of interface and wire levels
metze
(This used to be commit e7d339d496
)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
2d88ade182
r16443: add push code for SMB2 levels
...
metze
(This used to be commit 142680ab9b
)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
1ff99ba12d
r16440: split out passthru level into a new functions,
...
so they can we reused for smb2 later
metze
(This used to be commit 42324c1f63
)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
818c52a6b4
r16403: remove dependency to smbsrv_request next part...
...
metze
(This used to be commit 708a5d3bf0
)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
45c99a270e
r16402: start to remove the dependecy to smbsrv_request from the parsing functions
...
metze
(This used to be commit e4a5e2db7f
)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
7c01df4e77
r16401: keep the old pointer when realloc fails, this is needed for the
...
search callback
metze
(This used to be commit c868b8b7d7
)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
898f6f768f
r16400: add more error checks
...
metze
(This used to be commit 779c51ad52
)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
59670b2f97
r16399: - split out pushing smb_fsinfo into a DATA_BLOB
...
- add error checks
metze
(This used to be commit 2aaca1631f
)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
f03e039e88
r16357: - start get rid of void parsing functions
...
- there will more changes come but I want to do them in
relative small chunks
metze
(This used to be commit d021a8b3ee
)
2007-10-10 14:09:12 -05:00
Andrew Tridgell
03e7d37461
r15827: fixed a spelling error
...
(This used to be commit 801357af2e
)
2007-10-10 14:08:29 -05:00
Stefan Metzmacher
e0dcbe8dd1
r15769: this functions belong to params/ so move it.
...
metze
(This used to be commit 9c4c40772b
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
3cb64219e2
r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
...
metze
(This used to be commit 6c304a1a5f
)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
7930ae6a70
r15747: move some functions to the protocol independend part of the
...
smb server
metze
(This used to be commit 79af05551f
)
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
add9d49dbb
r15739: return False when the function is called with an invalid level
...
metze
(This used to be commit fc20e4154a
)
2007-10-10 14:08:10 -05:00
Stefan Metzmacher
9ef33f5f5c
r15734: This is a major change to the NTVFS subsystem:
...
- to use a struct ntvfs_handle instead of a uint16_t fnum.
(to make it independend from the frontend protocol)
- the allocation of handles now is provided by the frontend
(smbsrv_*) via callbacks and not by each backend module
- this also makes sure that file handles are only passed
to the ntvfs subsystem when the tcon and session matches,
so modules can rely on this and need to check this.
- this allows multiple modules in the ntvfs module chain
to allocate file handles. This can be used for virtual
files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"...
- also this will make SMB2 with 128 bit file handles possible
metze
(This used to be commit 287fc1c22d
)
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
82fd602cf0
r15714: fix async handling of ntioctl calls and push the DATA_BLOB into the reply
...
metze
(This used to be commit 0ac9a49f42
)
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
5445415b82
r15711: - make use of nttrans_setup_reply()
...
metze
(This used to be commit a870c084f6
)
2007-10-10 14:08:08 -05:00
Stefan Metzmacher
2adbcc3965
r15710: - we no longer need to set the nttrans out fields to zero
...
in the backends
- some whitespace cleanups
metze
(This used to be commit 6a0c24c73e
)
2007-10-10 14:08:07 -05:00
Stefan Metzmacher
0fc977c54d
r15709: - return an error is better than ignoring a non supported request
...
- zero nttrans output fields before calling the backends
metze
(This used to be commit b21d98a875
)
2007-10-10 14:08:07 -05:00
Stefan Metzmacher
a3cc3c9c1f
r15708: setup count is 8bit and param_count and data_count are 32bit
...
metze
(This used to be commit 6bc89b422c
)
2007-10-10 14:08:07 -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
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
Jelmer Vernooij
0199eac20d
r15314: Fix recursive dependency hack for static libs. Should fix the build
...
on most systems.
(This used to be commit c0ab0f4ed4
)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
9220144604
r15313: Fix some dependencies in dso mode
...
(This used to be commit f0afe9e2ff
)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
bc141c7957
r15304: Fix smbd build, more updates on getting --enable-dso to build again
...
(This used to be commit 3ef9326386
)
2007-10-10 14:05:08 -05:00
Jelmer Vernooij
b00c236906
r15301: Use static libraries internally. This required a few hacks in the build
...
system - these should be removed later on.
(This used to be commit 0654739166
)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6
)
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 7af59357b9
)
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 85d70f1c15
)
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 fb91a37e92
)
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 2c87f210e9
)
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 fca74f2a4b
)
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 9f9240d118
)
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 94d775c74d
)
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 b5edcde793
)
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 51b4270513
)
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 7253153691
)
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 1e1c559381
)
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 4ff3fb35e8
)
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 3441a4a74f
)
2007-10-10 13:57:37 -05:00
Stefan Metzmacher
d7254a3615
r14523: make async search request possible
...
metze
(This used to be commit f130632dc5
)
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 f2e9b2c3a2
)
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 fb927a7117
)
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 10e627032d
)
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 742be8e075
)
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 3dd477ca51
)
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 5709c1c4e1
)
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 be6d5298a2
)
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 b78abbbce6
)
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 180a79d103
)
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 2ef3f59709
)
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 ed9ed1f48f
)
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 2cd4cd1674
)
2007-10-10 13:56:54 -05:00
Stefan Metzmacher
1d495bc269
r14041: be a bit less verbose
...
metze
(This used to be commit 67a42a8097
)
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 78dd6b3e0c
)
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 e03a2e2de2
)
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 0ad70bfd83
)
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 2c74698032
)
2007-10-10 13:52:32 -05:00
Andrew Bartlett
107f7b9efa
r13911: Make these debug messages clearer.
...
(This used to be commit 9c8350c64b
)
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 60d7920527
)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
8d91f3dec0
r13872: fix typo
...
metze
(This used to be commit f28fb440d5
)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
a0e66eac7d
r13870: prefix more functions with smbsrv_
...
metze
(This used to be commit e6275db7b9
)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
0533fed85a
r13868: remove useless talloc_free() wrapper
...
metze
(This used to be commit bd3162e6a7
)
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
354a61fc91
r13866: prefix more functions with smbsrv_
...
metze
(This used to be commit bb083f17c9
)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
b58f6e543d
r13865: prefix functions with smbsrv_
...
metze
(This used to be commit 2af9663275
)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
c14e675260
r13863: this can be static...
...
metze
(This used to be commit ab659d8ee0
)
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
5991787ce6
r13862: rename chain_reply -> smbsrv_chain_reply
...
metze
(This used to be commit 497b219c7d
)
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 d1bae931b3
)
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 7f2a6cfd6f
)
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 58af0acafd
)
2007-10-10 13:52:17 -05:00
Andrew Tridgell
72d8e34ddc
r13856: fixed a misleading comment
...
(This used to be commit af6606fe98
)
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
36098dfda9
r13620: initialize the CMD with 0 too
...
metze
(This used to be commit 7cf1423bc8
)
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 7f821097fb
)
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 765caa14b3
)
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 88198c4881
)
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
2cd5ca7d25
r12542: Move some more prototypes out to seperate headers
...
(This used to be commit 0aca5fd513
)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
0a3c167f6b
r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
...
(This used to be commit 87f665a1d5
)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
d8e35f8828
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583ed
)
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
344703bfc0
r12115: bring SMB sesssetup_spnego in sync with SMB2 sesssetup
...
metze
(This used to be commit 99cf7dbb17
)
2007-10-10 13:47:10 -05:00
Stefan Metzmacher
273f340376
r12102: for SMB2 we need to allocate tcons per session
...
metze
(This used to be commit 4d527ac005
)
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
e5adca67f2
r12091: the SMB2 specific level are not available via SMB
...
(get rid of the compiler warnings)
metze
(This used to be commit 436c5127ef
)
2007-10-10 13:47:08 -05:00
Andrew Tridgell
67d0bb8dc7
r12082: fixed a valgrind error found by kukks in the transs server handling
...
(This used to be commit 5c81986bff
)
2007-10-10 13:47:06 -05:00
Andrew Bartlett
759bda2962
r11992: Potentially allow SPNEGO to be disabled (as occours on WinXP
...
standalone), and use only NTLMSSP.
(But doing so would break Samba3's client).
Andrew Bartlett
(This used to be commit e74ca624e7
)
2007-10-10 13:46:56 -05:00
Tim Potter
b9b59fa798
r11968: More warning fixes. We're on track to getting to double digits for
...
the number of warnings generated now.
(This used to be commit d479f2d760
)
2007-10-10 13:46:52 -05:00
Stefan Metzmacher
764dd6027b
r11788: remove unused header files
...
metze
(This used to be commit 27a2615876
)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
0e6cef55c3
r11787: add missing file
...
metze
(This used to be commit d74f333a84
)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
6d34ab056f
r11786: move all SMB protocol specific stuff to smb_server/smb/
...
metze
(This used to be commit 5fea278cb6
)
2007-10-10 13:46:27 -05:00