Jelmer Vernooij
ad252fb2f5
web_server: Make second argument to websrv_output const.
2012-12-05 14:56:43 +01:00
Simo Sorce
c84caabf8c
s4:misc: remove last usage of legacy event_ fn names
...
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Sun Aug 14 00:38:13 CEST 2011 on sn-devel-104
2011-08-14 00:38:13 +02:00
Andrew Tridgell
40dc94a53f
s4-ipv6: update callers to load_interface_list()
2011-06-06 12:26:10 +10:00
Andrew Tridgell
78a8087213
s4-webserver: fixed a talloc reference error on startup failure
2011-06-06 12:26:10 +10:00
Andrew Tridgell
8f3ce14ea7
s4-ipv6: use "ip" instead of "ipv4" for servers
...
this allows stream_setup_socket() to work with both v4 and v6
addresses
2011-06-06 12:26:10 +10:00
Andrew Tridgell
dc8c8fd9e4
s4-ipv6: use iface_list_wildcard() to listen on IPv6
...
when we need to listen on a wildcard address, we now listen on a list
of sockets, usually 0.0.0.0 and ::
2011-06-06 12:26:10 +10:00
Andrew Bartlett
22cb631b4f
s4-interfaces Rename interfaces code so not to conflict with source3/
...
The iface_count, iface_n_bcast, and load_interfaces functions
conflicted with functions of the same name in source3, so the source4
functions were renamed. Hopefully we can actually wrap one around the
other in future.
Andrew Bartlett
2011-05-08 12:57:04 +02:00
Jelmer Vernooij
0b4eb47e27
source4/: Fix prototypes for all functions in various subsystems.
2011-03-19 03:20:05 +01:00
Jelmer Vernooij
7982f683ee
web_server: Fix initialization.
2011-01-17 00:30:49 +01:00
Matthias Dieter Wallnöfer
fef1174ba8
s4:web_server - immeditately assign "wdata" as private data for the stream socket
...
This fixes bug #7887 .
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Jan 14 22:33:13 CET 2011 on sn-devel-104
2011-01-14 22:33:13 +01:00
Matthias Dieter Wallnöfer
05706e1801
s4:web_server/*.c - optimise includes
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 18:23:05 CET 2010 on sn-devel-104
2010-12-12 18:23:05 +01:00
Andrew Tridgell
ef7f4a1420
s4-server: make server sockets a child of the task context
...
We previously allocated sockets as direct children of the event
context. That led to crashes if a service called
task_server_terminate(), as it left the socket open and handling
events for a dead protocol.
Making them a child of the task allows the task to terminate and take
all its sockets with it.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-15 10:19:34 +11:00
Andrew Tridgell
046d38faa5
s4-smbd: don't initialise process models more than once
...
this also removes the event_context parameter from process model
initialisation. It isn't needed, and is confusing when a process model
init can be called from more than one place, possibly with different
event contexts.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:00 +11:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Andrew Tridgell
e9a589feac
s4-server: kill main daemon if a task fails to initialise
...
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
2009-09-18 18:05:55 -07:00
Stefan Metzmacher
d9c30894a1
s4:service_stream: s/private/private_data
...
metze
2009-02-02 13:09:00 +01:00
Stefan Metzmacher
1441e87e24
s4:service_task: s/private/private_data
...
metze
2009-02-02 13:08:59 +01:00
Stefan Metzmacher
100f4e318e
s4:web_server: s/private/private_data
...
metze
2009-02-02 13:08:37 +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
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Stefan Metzmacher
1d92b2211c
s4: allways initialize the process model before it's used
...
metze
2008-09-22 18:16:09 +02:00
Jelmer Vernooij
1ed040d8e2
First GET request works. SWAT now displays a Hello world message.
2008-09-21 19:03:12 +02:00
Jelmer Vernooij
4141e70da9
Properly call WSGI request handler when requests come in.
2008-09-21 18:45:09 +02:00
Jelmer Vernooij
1271066234
Remove support for ESP in the web server.
2008-09-21 16:53:29 +02:00
Jelmer Vernooij
fda85985e9
Remove some dependencies of the web server on esp.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
ef5a04485a
Rename http to esp, in preparation of adding a python backend.
2008-09-21 16:03:52 +02: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
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
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
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
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
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
0b91f39164
r24780: More work allowing libutil to be used by external users.
...
(This used to be commit 31993cf67b
)
2007-10-10 15:03:10 -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
46aa292ecf
r19225: 30 seconds is too short for a Samba4 provision to finish. Make the
...
timeout longer.
Andrew Bartlett
(This used to be commit cc03ffd0e9
)
2007-10-10 14:20:55 -05:00
Stefan Metzmacher
315f04caa8
r18944: talloc_reference() can fail...
...
(remove compiler warning)
metze
(This used to be commit 515f4eb1ce
)
2007-10-10 14:20:23 -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
Andrew Bartlett
84b0eb6a57
r17286: Simply fail the tls_initialise if we don't have TLS compiled in.
...
Adjust the web_server code to cope with this.
Andrew Bartlett
(This used to be commit 3043969708
)
2007-10-10 14:15:06 -05:00
Andrew Tridgell
92acfc0799
r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
...
(This used to be commit 396d82a231
)
2007-10-10 14:08:33 -05:00
Andrew Bartlett
742c110cd6
r15400: Move the TLS code behind the socket interface.
...
This reduces caller complexity, because the TLS code is now called
just like any other socket. (A new socket context is returned by the
tls_init_server and tls_init_client routines).
When TLS is not available, the original socket is returned.
Andrew Bartlett
(This used to be commit 09b2f30dfa
)
2007-10-10 14:05:32 -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
c9e5d884fc
r13941: fix the build
...
metze
(This used to be commit d9da948b0f
)
2007-10-10 13:52:29 -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