Sam Liddicott
176302dc05
Add async support for reply_tcon* and ntvfs_connect
...
smbsrv_tcon_backend no longer creates the ntvfs_request wrapper,
so smbsrv_reply_tcon* can now do this and then invoke ntvfs_connect
in the typical manner using SMBSRV_SETUP_NTVFS_REQUEST and
SMBSRV_CALL_NTVFS_BACKEND
Previously smbsrv_tcon_backend has been responsible for instantiating
the ntvfs_module_context to service a tree-connect request, and
then create an ntvfs_request wrapper around the smbsrv_request
and pass this to ntvfs_connect for the newly created ntvfs.
These actions could not be invoked asynchronously.
This meant that any client requests made while instantiating the
ntvfs module, including any composite's used during authentication
(or related client connections for the case of proxy modules)
would block other ntvfs modules and requests in the current process as
they executed a nested event loop to await completion.
Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-04-23 16:57:18 +02:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Andrew Bartlett
71632a1697
Remove auth/ntlm as a dependency of GENSEC by means of function pointers.
...
When starting GENSEC on the server, the auth subsystem context must be
passed in, which now includes function pointers to the key elements.
This should (when the other dependencies are fixed up) allow GENSEC to
exist as a client or server library without bundling in too much of
our server code.
Andrew Bartlett
2009-02-13 10:24:16 +11:00
Stefan Metzmacher
d9c30894a1
s4:service_stream: s/private/private_data
...
metze
2009-02-02 13:09:00 +01:00
Stefan Metzmacher
5bf95a71dd
s4:smb_server: s/private/private_data
...
metze
2009-02-02 13:08:36 +01:00
Stefan Metzmacher
5f13710ced
s4:irpc: avoid c++ reserved word 'private'
...
metze
2009-02-01 00:17:20 +01:00
Simo Sorce
380874ef86
Fix the mess with ldb includes.
...
Separate again the public from the private headers.
Add a new header specific for modules.
Also add service function for modules as now ldb_context and ldb_module are
opaque structures for them.
2009-01-30 01:02:03 -05:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
b86b2ce662
Fix two remaining missing symbols in smbtorture4.
2008-12-22 23:00:10 +01:00
Jelmer Vernooij
c023828962
Fix missing symbols issues when building with shared libraries.
2008-12-22 21:03:09 +01:00
Jelmer Vernooij
928fd47c3d
s4: Fix subsystem for various services in samba daemon.
2008-12-22 19:04:55 +01:00
Stefan Metzmacher
081f8883ba
s4: fix LIBEVENTS dependencies and use more forward declarations
...
We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'
metze
2008-12-17 11:04:45 +01:00
Sam Liddicott
7d8f3cdbfc
Let ntvfs request transport close via ntvfs_request state
...
[I can't swear that this covers all the smb2 cases, there are some reply
functions that I can't trace properly]
Add NTVFS_ASYNC_STATE_CLOSE bit to ntvfs_request->async_states->state
so that the ntvfs layer can signify that the client transport should
be closed, most useful for proxy servies, and most likely due to a
forwarding transport having been closed.
Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-05 12:52:13 +01:00
Jelmer Vernooij
b45caa44e1
Fix the build.
2008-11-02 23:58:49 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
37d885c51a
Remove iconv_convenience argument from convert_string{,talloc}() but
...
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Tim Prouty
e11277e28d
Fixed a variable undeclared compilation error
...
Explicitly declaring environ eliminates a compilation error on some
systems.
2008-10-13 17:53:58 -07:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Volker Lendecke
1a228b442e
smbd3 is unhappy if stderr is not open
2008-10-05 22:15:40 +02:00
Volker Lendecke
9542b2fe60
Re-enable build of smb_samba3.c after the rename smbd->samba
2008-10-05 16:59:09 +02:00
Stefan Metzmacher
e622325155
s4:smb_server/smb: FLAGS2_SMB_SECURITY_SIGNATURES should only be echoed, not set always
...
metze
2008-09-30 08:42:47 +02:00
Andrew Bartlett
8dd35fabbb
NetApp found that we never set the smb signing flags2.
...
This was found during testing at the CIFS plugfest.
No other client seems to honour or use this bit, but it is quite
ligitimately required by the spec.
Andrew Bartlett
2008-09-29 22:34:35 -07:00
Andrew Tridgell
0cf7175126
we need different error handling for truncated packets in NETPROT and
...
other SMB2 operations.
2008-09-24 18:58:38 -07:00
Andrew Tridgell
eb5b3f50d1
we should terminate the connection on a bad negprot packet size
2008-09-24 18:10:23 -07:00
Andrew Tridgell
742a99e046
- add reserved field in basic_information level
...
- use INVALID_PARAMETER for info length mismatch to match windows
behaviour
- added parsing of LINK_INFORMATION level
2008-09-24 18:10:23 -07:00
Andrew Tridgell
63685c7d02
record highest seq number in SMB2 to check for seqnum going backwards
2008-09-24 18:10:23 -07:00
Andrew Tridgell
49c80cea0b
cope with body_size zero in SMB2 receive
2008-09-24 18:10:23 -07:00
Andrew Tridgell
a3536c4c06
check for a 0 byte in the buffer in SMB2 read
2008-09-24 18:10:23 -07:00
Andrew Tridgell
7e57626d1d
the offset is 16 bits in SMB2 fileinfo
2008-09-24 18:10:23 -07:00
Andrew Tridgell
71ae732669
fixed error code for bad keepalive
2008-09-24 18:10:22 -07:00
Andrew Tridgell
ff542275c3
stricter checking of SMB2 echo body (per the spec)
...
thanks to the bluearc test suite
2008-09-24 18:10:22 -07:00
Jelmer Vernooij
6a689c23e8
Rename smbd -> samba.
...
This reverts commit 05ea5e23cf
.
Conflicts:
source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Stefan Metzmacher
171349bc21
s4:smb_server: remove the bogus smbsrv_signing_restart()
...
Real signing always starts with seqnumber 2, and once signing
is on the session key never change anymore for the complete
smb connection.
metze
2008-09-23 11:30:04 +02:00
Andrew Bartlett
3b5060fdba
Explain why we use signing for DCs, but not file servers
2008-09-22 16:32:04 -07:00
Stefan Metzmacher
bee2b6c3a3
process incoming connections and fork a samba3 in inetd mode
2008-09-22 04:38:06 +02:00
Jelmer Vernooij
05ea5e23cf
Revert "Rename smbd -> samba."
...
This reverts commit 0e9008be35
.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35
Rename smbd -> samba.
2008-09-21 21:26:40 +02:00
Andrew Bartlett
059cd93497
Move our DC to implement mandetory signing.
...
(this does not change the file server role, and only really changes
what 'server signing = auto' means)
Optional signing really isn't any benifit to network security.
In doing so, allow anonymous clients (if permitted by policy) to log
in without signing, as Samba3 does not sign these connections (which
would use an all-zero key, so pointless).
Andrew Bartlett
(This used to be commit 468bf839c5
)
2008-09-05 16:45:10 +10:00
Andrew Bartlett
b7a1640b38
With a windows 2008 client, even anonymous requires signing...
...
Andrew Bartlett
(This used to be commit a89f981818
)
2008-09-05 16:24:44 +10:00
Stefan Metzmacher
2a36568129
smb2srv: async replies with STATUS_PENDING are not signed
...
..., but the they may have the sign flag set.
metze
(This used to be commit 43e43dead0
)
2008-08-14 13:13:50 +02:00
Stefan Metzmacher
0294c678c0
smb2srv: sign replies when the request was also signed
...
metze
(This used to be commit dd2f4f7a49
)
2008-08-14 13:13:50 +02:00
Stefan Metzmacher
4a214dba30
smb2srv: use defines instead of hex values
...
metze
(This used to be commit 7c4abf6614
)
2008-08-14 13:13:50 +02:00
Stefan Metzmacher
0251096a89
smb2srv: sign SMB2 Logoff replies
...
metze
(This used to be commit 2844e36173
)
2008-07-28 14:09:46 +02:00
Stefan Metzmacher
8623e2cc4c
smb2srv: correctly hold the signing state per session
...
metze
(This used to be commit 5b3ba3f355
)
2008-07-28 14:09:45 +02:00
Andrew Tridgell
809632c3df
initialise query_maximal_access here too
...
(This used to be commit 4b3af09450
)
2008-07-24 14:21:31 +10:00
Andrew Tridgell
091c141aba
make sure we initialise query_maximal_access
...
(This used to be commit 036f73d39a
)
2008-07-24 14:20:02 +10:00
Stefan Metzmacher
8bf2127313
smb_server/smb: handle incoming multi fragmented nttrans requests
...
metze
(This used to be commit 9a5f7bf68b
)
2008-07-07 20:59:19 +02:00
Stefan Metzmacher
5e4b8d6e51
smb_server/smb: prepare multi fragmented nttrans requests
...
metze
(This used to be commit 36a39b92d7
)
2008-07-07 20:59:19 +02:00
Stefan Metzmacher
1bc344cf52
smb_server/smb: trans(2) setup count is uint8_t
...
metze
(This used to be commit 1b507a9b8e
)
2008-07-07 18:10:08 +02:00
Stefan Metzmacher
50df83ac8c
smb_server/smb: transs and transs2 calls have different word counts
...
Also add a note about NT_STATUS_DOS(ERRSRV, ERRerror).
metze
(This used to be commit 4287b7c132
)
2008-07-07 13:43:12 +02:00
Stefan Metzmacher
88a26f6e7f
smb_server/smb: fix crash bug with fragmented trans calls
...
We need to use smbsrv_setup_secondary_request(req) to send the
trans ack, because smbsrv_send_reply(req) destroys 'req'
and the partial trans list had dead elements in the list.
Also make sure the partial list element is removed by a talloc
destructor.
metze
(This used to be commit 221f4d6e53
)
2008-07-07 13:43:12 +02:00
Andrew Tridgell
e4ad580b99
fixed mandatory signing
...
Metze pointed out that if signing is mandatory in the server then we
need to reject packets without the signed flag if the packet contains
a session id.
(This used to be commit 056f16e664
)
2008-06-07 08:14:25 -07:00
Andrew Tridgell
e97cf207fa
added server side SMB2 signing
...
(This used to be commit 8e919dcb08
)
2008-06-06 22:10:30 -07:00
Andrew Tridgell
405e64c437
more updates for new info levels
...
(This used to be commit 85d1873ee9
)
2008-06-02 11:05:06 +10:00
Andrew Tridgell
eb8634b2f0
check for requested buffer size in getinfo call
...
(This used to be commit ed8f16379d
)
2008-05-31 13:39:51 +10:00
Andrew Tridgell
6ef9674caa
the docs shows that this is a o16s32 blob
...
(This used to be commit a6d28e2b33
)
2008-05-30 07:28:53 +10:00
Andrew Tridgell
de4c962638
fix from WSPP SMB2 test 11
...
(This used to be commit 81612b7854
)
2008-05-29 19:32:04 +10:00
Andrew Tridgell
c86dc11be6
added support for returning the maximal access MXAC tag in SMB2 create
...
(This used to be commit 4eb49335d5
)
2008-05-29 19:16:26 +10:00
Andrew Tridgell
6b70726305
implement the documented SMB2 create blobs in the server
...
Not all of them are honoured yet, but they are all parsed and the ones
that have SMB equivalents are honoured
(This used to be commit 9fc70e2ed6
)
2008-05-28 16:28:37 +10:00
Andrew Tridgell
f85cfa9161
make sure we send a reply packet for bad create options
...
(This used to be commit f9b94f6299
)
2008-05-28 11:47:39 +10:00
Jelmer Vernooij
40a90e6a55
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-pyirpc
...
(This used to be commit e1af9708c9
)
2008-05-26 12:19:09 +02:00
Andrew Tridgell
2ad2bdda89
stricter checks for valid inputs in SMB2 open and lock
...
(This used to be commit a7b5689a73
)
2008-05-26 15:02:43 +10:00
Jelmer Vernooij
575f124385
Cope with no server being active.
...
(This used to be commit 893119bb4c
)
2008-05-26 05:12:31 +02:00
Andrew Tridgell
ec7a6ee8ab
fix make test for EAs again
...
- go back to 4 byte alignment until I work out the rules that Vista
wants more exactly
- add the zero sized EA handling for SMB2 more generically
(This used to be commit 326b69bc80
)
2008-05-23 00:07:12 +10:00
Andrew Tridgell
d5def936fe
pass in the required alignment to the EA construction routines
...
(This used to be commit af31030e0b
)
2008-05-22 22:46:29 +10:00
Andrew Tridgell
dec930448f
fixed parsing of the SMB2 ALL_INFO qfileinfo level
...
(This used to be commit a7be5ba22e
)
2008-05-22 14:49:21 +10:00
Andrew Tridgell
72739ac0d0
badly formed SMB2 packets get NT_STATUS_INVALID_PARAMETER
...
(This used to be commit 1c5dd2d1b6
)
2008-05-22 13:14:55 +10:00
Andrew Tridgell
aed93a238e
fixed SMB2 flush call, and added flush to gentest_smb2
...
(This used to be commit c52fe1fe1c
)
2008-05-21 22:51:21 +10:00
Andrew Tridgell
4d39976ddd
fixed SMB2 locking
...
- SMB2 locking is different in several ways from SMB locking. To fix
it properly we will need a new generic mapping structure for
locking, but for now do a best effort mapping
- added locking to gentest_smb2
(This used to be commit ea6d9cf602
)
2008-05-21 22:12:20 +10:00
Andrew Tridgell
03eb236f20
Merge commit 'origin/v4-0-test' into vfs_smb2
...
(This used to be commit 733937e87a
)
2008-05-19 11:40:25 +10:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88
Use variables for source directory in a couple more places.
...
(This used to be commit c41bd3005f
)
2008-05-18 19:54:27 +02:00
Andrew Tridgell
94162b3222
fixed warning
...
(This used to be commit d5165ed7a7
)
2008-05-16 12:46:28 +10:00
Andrew Tridgell
2994b483c8
fixed file_index reference
...
(This used to be commit edb4b38ed3
)
2008-05-16 12:46:16 +10:00
Andrew Tridgell
c0e247ab40
better match WSPP doc name for find flags
...
(This used to be commit 0e4b8602de
)
2008-05-15 20:46:43 +10:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Stefan Metzmacher
8b5f03a225
smb_server/smb2: handle incoming oplock releases
...
metze
(This used to be commit 2306394dcc
)
2008-04-19 01:54:45 +02:00
Amin Azez
b3f9740764
Flag smb messages array with AND_X and LARGE_REQUEST
...
If smb_messages flags show for which opcodes VWV(0)
signifies chaining modes, and also which opcodes can
have requests >64K then the bcc / req->in.data_size
fixup in smbsrv_recv_smb_request can be more safely
applied.
This fix permits nttrans requests >64K to be handled.
It is not yet clear if THAT is a good thing, but this
fix does the current thing more nicely.
(This used to be commit 8e4f16e975
)
2008-04-18 22:09:10 +02:00
Amin Azez
908d8daa21
Re-order smbsrv_recv_smb_request and smb_messages
...
No functional change, just re-ordering so that
smbsrv_recv_smb_request can refer to smb_messages
in a future patch
(This used to be commit d06eafea1a
)
2008-04-18 22:09:10 +02:00
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
dd0da89e84
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
...
(This used to be commit ece878c1f9
)
2008-04-17 13:05:25 +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
Andrew Tridgell
769ebe9171
make smb2 read and write size configurable
...
(This used to be commit 2090e75e0c
)
2008-04-17 09:37:29 +02:00
Stefan Metzmacher
79b2980cf5
smb_server/smb2: initialize new create.in.blobs element untill it'll be supported
...
metze
(This used to be commit fbfbd74e65
)
2008-04-17 02:39:29 +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
Andrew Tridgell
275f32ae2d
fill in unknown fields in SMB2 READ call
...
(This used to be commit 9b686c1380
)
2008-04-14 11:31:17 +02:00
Jelmer Vernooij
b5d84a74d1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/makefile.pm
source/heimdal_build/config.mk
source/lib/events/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/registry/config.mk
source/lib/socket_wrapper/config.mk
source/lib/tdb/config.mk
source/lib/tls/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/scripting/ejs/config.mk
source/smbd/process_model.mk
(This used to be commit 760378e029
)
2008-04-08 03:45:06 +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
Jelmer Vernooij
18d80bdf1f
Merge v4.0-test
...
(This used to be commit 977dbdeaf3
)
2008-03-28 00:44:14 +01: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
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
fc2cd5ed63
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
(This used to be commit e4da851bd7
)
2008-03-07 18:03:54 +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
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
299265d47b
Remove yet more global_loadparm instances.
...
(This used to be commit 5de88728ac
)
2008-02-21 18:09:47 +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
9e3e0f9d39
More share_init to more apprioriate place.
...
(This used to be commit b84f19f678
)
2008-02-21 16:21:32 +01:00
Jelmer Vernooij
ff0315ba85
Rename include to mkinclude to emphasize it is different from make's include.
...
(This used to be commit 0e1d0a874a
)
2008-02-18 20:04:18 +01:00
Jelmer Vernooij
80cbff3d01
Fix build with partial linking.
...
(This used to be commit bfad9610c4
)
2008-02-18 16:02:33 +01:00
Andrew Tridgell
5fb241e5d3
3 places where the VFS backend doesn't handle NULL strings.
...
(This used to be commit cf109460af
)
2008-02-18 14:54:14 +11: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
b640f475be
updated SMB2 code for getinfo according to WSPP docs
...
- Updated getinfo structures and field names
- also updated the protocol revision number handling to reflect
new docs
(This used to be commit 3aaa2e86d9
)
2008-02-14 17:11:36 +11:00
Andrew Tridgell
4a04a5e620
A better way to handle the different format of RenameInformation in SMB2
...
We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2
and set that level when handling SMB2 packets. This makes the parsers clearer.
(This used to be commit f6cdf3f117
)
2008-02-14 14:54:21 +11: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
88d2e05227
updated SMB2 create operation to match WSPP.
...
Adding some defined for various new create options
(This used to be commit d037dc23ce
)
2008-02-13 15:05:44 +11:00
Andrew Tridgell
e94d710b0b
updated SMB2 tcon as per WSPP docs
...
(This used to be commit 5913e3e549
)
2008-02-13 10:13:28 +11:00
Andrew Tridgell
cd2b003aba
fixed crash when 0 dialects (thanks metze!)
...
(This used to be commit 252bcf207b
)
2008-02-12 20:29:31 +11:00
Andrew Tridgell
a2505c5a2c
updated SMB2 header defines to match WSPP docs
...
(This used to be commit d2c6ad55ec
)
2008-02-12 17:00:35 +11:00
Andrew Tridgell
416360895f
converted SMB2 session setup to use WSPP protocol field names
...
(This used to be commit 3c2af0fdc4
)
2008-02-12 16:43:38 +11:00
Andrew Tridgell
8fdb9504dc
converted the out side of SMB2 negprot handling
...
This follows the SMB2 PFIF docs. Current versions of Vista can now connect to Samba4 as a SMB2 server
and do basic operations
(This used to be commit 9dc284770d
)
2008-02-12 16:20:13 +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
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +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
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06: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
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf3972
)
2007-12-21 05:50:08 +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
70f1f33af8
r26402: Require a talloc context in libnetif.
...
(This used to be commit a35e51871b
)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace
r26401: Don't cache interfaces context in libnetif.
...
(This used to be commit 9f975417cc
)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
f055893ca5
r26382: Remove more uses of global_loadparm.
...
(This used to be commit 6d4c598534
)
2007-12-21 05:49:17 +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
5f9aeca0d6
r26347: More tests.
...
(This used to be commit 5d927b5ca7
)
2007-12-21 05:48:53 +01:00
Jelmer Vernooij
c5bf20c5fe
r26325: Remove use of global_loadparm in netif.
...
(This used to be commit e452cb2859
)
2007-12-21 05:48:37 +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
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +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
ab69eb8d89
r26250: Avoid global_loadparm in a couple more places.
...
(This used to be commit 2c6b755309
)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
291ddf4336
r26237: Add loadparm context to the server service interface.
...
(This used to be commit 1386c5c925
)
2007-12-21 05:47:15 +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
f4a1083cf9
r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
...
(This used to be commit 0721a07aad
)
2007-12-21 05:47:04 +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
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -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
Jelmer Vernooij
166284d9c1
r24940: Fix undeclared warning.
...
(This used to be commit bbc4650871
)
2007-10-10 15:03:40 -05:00
Jelmer Vernooij
8e2d624a58
r24937: Merge tests spoolss RPC callbacks.
...
(This used to be commit 9b256a0ca2
)
2007-10-10 15:03:39 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -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 Tridgell
2a8f9213a4
r23700: pre-open the sam in the parent smbd. This has the effect of loading
...
the schema. That stops us loading the schema for each new connection.
In future I would prefer to share a lot more of our ldb contexts with
children. That will require a larger piece of surgery.
(This used to be commit ff41bdc350
)
2007-10-10 14:59:04 -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
Stefan Metzmacher
6eaf8ee849
r23045: forward SMB2 oplock breaks to the client
...
metze
(This used to be commit 577acc198b
)
2007-10-10 14:52:44 -05:00
Stefan Metzmacher
10498e8a72
r23044: - use uint32_t for handle id's
...
- include the session vuid in the SMB2 128-Bit wire handles
as SMB2 oplock breaks doesn't include a TID or VUID in the header
we need to make sure the handle is unique for the whole TCP connection
metze
(This used to be commit 7c29b8a7e6
)
2007-10-10 14:52:44 -05:00
Stefan Metzmacher
baa81e2959
r23043: allow more than UINT16_MAX - 1 handles on smb2 connections
...
metze
(This used to be commit 6d08c4cef2
)
2007-10-10 14:52:44 -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
bf62b6642c
r22866: handle incoming chained smb2 requests in our server code to let
...
the windows explorer in longhorn beta3 work.
metze
(This used to be commit 2390c9f24d
)
2007-10-10 14:52:26 -05:00
Stefan Metzmacher
4eb1c753ab
r22843: pass smb2 lock requests to the ntvfs layer
...
metze
(This used to be commit 7fa00381ef
)
2007-10-10 14:52:24 -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
d461f97a4a
r18839: align all directory search blobs on an 8 byte boundary to keep the
...
current vista release happy.
(This used to be commit d3f0114a9d
)
2007-10-10 14:20:14 -05:00
Volker Lendecke
000698d643
r18686: Fix typo protocl->protocol
...
(This used to be commit 14b88fefa0
)
2007-10-10 14:19:02 -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
Andrew Tridgell
1b5c28a627
r18211: wct is not a size, so don't use size_t
...
this should fix a pile of printf format warnings
(This used to be commit fe209e360e
)
2007-10-10 14:17:50 -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
a2eca9174c
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
(This used to be commit f20e251bfd
)
2007-10-10 14:15:39 -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
c5148cd9cd
r17360: add some comments
...
metze
(This used to be commit 3d849f9d25
)
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
Andrew Bartlett
34bf6f60af
r17297: Some compilers don't seem to like the ;;
...
Andrew Bartlett
(This used to be commit f814fae400
)
2007-10-10 14:15:07 -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
Stefan Metzmacher
28b8ec0156
r17268: change the smb2 session setup to use the new gensec_update_send/recv() api
...
metze
(This used to be commit 14ecc56343
)
2007-10-10 14:10:25 -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
8075ce63fd
r17084: implement SMB2 Cancel in the server,
...
that makes it possible for clients to cancel
async requests, like NOTIFY...
metze
(This used to be commit eaccd3c435
)
2007-10-10 14:10:12 -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
669e5d0fab
r17009: set the protocol version correct
...
metze
(This used to be commit 24ec382560
)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
b73a3ad21b
r16989: implement SMB2 Notify in the frontend
...
metze
(This used to be commit 156bd4620c
)
2007-10-10 14:10:07 -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
5468516f9a
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
...
the operation doesn't need a valid file handle in that case
metze
(This used to be commit d41a83d559
)
2007-10-10 14:10:00 -05:00
Stefan Metzmacher
41992489d2
r16913: better return the same values as vista beta2
...
metze
(This used to be commit ae9c007324
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
ac857dcfed
r16912: I messed up the numbers for ipc and print shares...
...
This caused vista beta2 to not do any rpc calls
against samba4
metze
(This used to be commit b42d918d56
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
29f3389fc0
r16911: the TID is only 32 bits...don't overwrite parts of the UID field
...
metze
(This used to be commit 7db393e5ea
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
627f49d8c9
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
(This used to be commit 27087818c7
)
2007-10-10 14:09:58 -05:00
Stefan Metzmacher
eb75ecbccf
r16889: implement SMB2 Ioctl in the frontend
...
metze
(This used to be commit 90b0ae53e4
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
a3797ff66a
r16875: implement SMB2 Find in the frontend
...
metze
(This used to be commit 58bed7322c
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
e8b61d7cc8
r16872: when we know the data length we can preallocate the buffer
...
and avoid a realloc
metze
(This used to be commit 51d59d23a1
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
bb158b74da
r16871: zero padding bytes
...
(found by valgrind)
metze
(This used to be commit 283bec8295
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7
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
(This used to be commit 1a1fd2747d
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491
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
(This used to be commit 7761a2a595
)
2007-10-10 14:09:55 -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
21af3847a6
r16740: just say the directory is empty
...
metze
(This used to be commit 6326bb901f
)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c
r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
...
metze
(This used to be commit fa35ddcaf9
)
2007-10-10 14:09:42 -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
6acd9aed93
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
(This used to be commit 58baae8fc4
)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
a18fc61d4f
r16733: implement SMB2 SetInfo
...
metze
(This used to be commit 9b6f74778f
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b20c00f718
r16732: use the given macros
...
metze
(This used to be commit 6d5c74c38c
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
2f60a2bc7a
r16731: send a better error code, required for vista-beta2 client
...
metze
(This used to be commit a251e72206
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
63d0c5a057
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
(This used to be commit b3bdd4afde
)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
bd0dcebe36
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
(This used to be commit f309209629
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae
r16699: the layout of SMB2 Read and Write is identical...
...
so we know that the 9th bytes is just uninitialized padding
metze
(This used to be commit f97a21b970
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
4015b01088
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
(This used to be commit 058c6397a4
)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
826597bfa8
r16670: try to match the vista error codes a bit more
...
metze
(This used to be commit 1a4978118d
)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
bcc9e8af30
r16666: implement setting of security_descriptors via SMB2 SetInfo
...
metze
(This used to be commit 6908582f68
)
2007-10-10 14:09:36 -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
ca044dcd3a
r16568: add parsing code for SMB2 SetInfo
...
metze
(This used to be commit 70cc992843
)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
74fe06832a
r16520: move smb2srv_break_recv back to fileio.c
...
metze
(This used to be commit cdee9b2168
)
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
98024a8125
r16467: implement SMB2 GetInfo server code
...
metze
(This used to be commit 49b5b3cd58
)
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
70eac2a274
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
(This used to be commit fdefec1de9
)
2007-10-10 14:09:29 -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
15de59549b
r16457: fix typo
...
metze
(This used to be commit 049ddc8a96
)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
74d58ab06f
r16456: return on error...
...
metze
(This used to be commit 44ab067d14
)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
2a3bcdb530
r16450: fix the build...
...
metze
(This used to be commit 316f3312d2
)
2007-10-10 14:09:16 -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
f8dc3bbf9f
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
(This used to be commit 3f8ce6d680
)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
1fd1e2ba58
r16407: add parsing code the SMB2 GetInfo in the server
...
metze
(This used to be commit c4755c83c6
)
2007-10-10 14:09:13 -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