Sam Liddicott
8cd9c72d75
s4:smb_server: initialy read the first 4 bytes only
...
Stop packet_recv getting greedy and reading the whole socket
and then dispatching te extra packets in a timer loop
Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-05-20 10:16:43 +02: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
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
575f124385
Cope with no server being active.
...
(This used to be commit 893119bb4c
)
2008-05-26 05:12:31 +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
299265d47b
Remove yet more global_loadparm instances.
...
(This used to be commit 5de88728ac
)
2008-02-21 18:09:47 +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
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
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
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf3972
)
2007-12-21 05:50:08 +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
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
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
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
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
Jelmer Vernooij
8e2d624a58
r24937: Merge tests spoolss RPC callbacks.
...
(This used to be commit 9b256a0ca2
)
2007-10-10 15:03:39 -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
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
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
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
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
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
bfcaa4000e
r14096: setup a service task for smbsrv and dcesrv
...
metze
(This used to be commit 7ad522c7ac
)
2007-10-10 13:56:50 -05:00
Stefan Metzmacher
651ca6553e
r14079: I just found the setproctitle library from alt linux:-)
...
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections
metze
(This used to be commit 526f20bbec
)
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
0de1ad5ae6
r13937: fix the build
...
metze
(This used to be commit 7aabff8298
)
2007-10-10 13:52:28 -05:00
Jelmer Vernooij
9bd7dd9121
r13926: More header splitups.
...
(This used to be commit 930daa9f41
)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -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
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
Stefan Metzmacher
e246a06751
r12126: get rid of the local ->terminate hacks, we do that genericly now
...
metze
(This used to be commit a7baf165c1
)
2007-10-10 13:47:12 -05:00
Tim Potter
03d301ead5
r11967: Fix more 64-bit warnings.
...
(This used to be commit 9c4436a124
)
2007-10-10 13:46:52 -05:00
Stefan Metzmacher
910d61bcd1
r11789: - add the start of a SMB2 server
...
- it does Negprot and SessionSetup yet
the rest returns NT_STATUS_NOT_IMPLEMENTED
- it's off by default, enable with:
smbsrv:enable smb2 = yes
- negotition in the SMB Negprot isn't supported yet
- it's only tested with smbtorture SMB2-CONNECT
not with vista as client
metze
(This used to be commit 08b31d5f61
)
2007-10-10 13:46:28 -05:00
Stefan Metzmacher
799724aae7
r11774: - move SMB specific initialisation of the smbsrv_connection out of smb_server.c
...
- add a generic incoming packet handler, which handles the first incoming packet
and passes to the protocol specifc packet handler
metze
(This used to be commit f89deac1cb
)
2007-10-10 13:46:25 -05:00
Stefan Metzmacher
ace255a54b
r11757: make smb_server.c independent from the protocol
...
metze
(This used to be commit b606d5664d
)
2007-10-10 13:46:23 -05:00
Stefan Metzmacher
27b9d5652e
r11746: revert my last commits, I now understand how we decide between
...
finished and non-finished sessions
metze
(This used to be commit 7cf6b307bc
)
2007-10-10 13:46:21 -05:00
Stefan Metzmacher
dae30e5b50
r11744: make sure the session is completed authenticated!!!
...
metze
(This used to be commit 0383218a00
)
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
7dd6e5fe92
r11724: - move checks packet size and protocol version,
...
before we create the request structure
- move code into one function
metze
(This used to be commit 96345b1c46
)
2007-10-10 13:46:18 -05:00