1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

180 Commits

Author SHA1 Message Date
Andrew Tridgell
4cb423f527 s4-python: python is not always in /usr/bin
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Jelmer Vernooij
9382507909 web_server: Don't build wsgi support as python module but rather as
subsystem so we don't install it into /usr/lib.
2010-06-18 23:51:40 +02:00
Matthias Dieter Wallnöfer
76cd237ee5 s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an "asprintf" failure 2010-05-30 11:12:25 +02:00
Matthias Dieter Wallnöfer
f11cf62016 s4:web_server/wsgi.c - provide a better out-of-memory handling for an "asprintf" call 2010-05-28 18:58:45 +02:00
Matthias Dieter Wallnöfer
ce99f9e734 s4:web_server/wsgi.c - fix "asprintf" call 2010-05-28 10:04:48 +02:00
Stefan Metzmacher
6129aa0cf5 s4:web_server: use tsocket_address functions to get the local ip and port
metze
(cherry picked from commit 9a1a00199c)
2010-04-28 15:45:02 +02:00
Matthias Dieter Wallnöfer
d1db751ff8 Revert "s4:web_server: use tsocket_address functions to get the local ip and port"
This reverts commit 9a1a00199c.

This broke the build.
2010-04-27 18:45:42 +02:00
Stefan Metzmacher
9a1a00199c s4:web_server: use tsocket_address functions to get the local ip and port
metze
2010-04-27 17:05:30 +02:00
Andrew Tridgell
b0fb567f04 s4-waf: more dependencies on talloc
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Matthias Dieter Wallnöfer
e34637b2a6 s4:Remove "Py_RETURN_NONE" compatibility code
This was needed only by Python 2.3 which we no longer support.
2010-02-09 17:53:09 +01:00
Andrew Tridgell
3050f83288 s4-python: we need to include Python.h first
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11: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
62c8f6b1a5 s4:web_server: s/private/private_data
metze
2009-02-02 13:08:50 +01:00
Stefan Metzmacher
100f4e318e s4:web_server: s/private/private_data
metze
2009-02-02 13:08:37 +01:00
Jelmer Vernooij
ba5d6e6d70 Avoid using a utility header for Python replacements included in Samba,
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4 2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1 py: Properly increase the reference counter of Py_None. 2009-01-06 04:13:57 +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
bd64688c6a Fix more compiler warnings in various places. 2008-12-23 22:57:11 +01:00
Jelmer Vernooij
c023828962 Fix missing symbols issues when building with shared libraries. 2008-12-22 21:03:09 +01:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02: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
1d92b2211c s4: allways initialize the process model before it's used
metze
2008-09-22 18:16:09 +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
Jelmer Vernooij
bbfce1b43d Allow SWAT to be run outside of smbd. 2008-09-21 20:06:18 +02:00
Jelmer Vernooij
f3d513b378 Support POST requests again, provide more variables in environment. 2008-09-21 20:01:00 +02:00
Jelmer Vernooij
ef8d9f8a75 Make standard SWAT script print received headers. 2008-09-21 20:00:44 +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
2df040d899 Add input / error stream objects in WSGI implementation. 2008-09-21 16:03:52 +02:00
Jelmer Vernooij
a4e8ff7429 Add more parts of the WSGI implementation. 2008-09-21 16:03:52 +02:00
Jelmer Vernooij
4bb17b60ef Add initial work on WSGI support in the web server. 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
Jelmer Vernooij
197870a731 Remove remaining embedded JavaScript support. 2008-09-16 18:05:53 +02:00
Jelmer Vernooij
58b1ab92a1 Fix import.
(This used to be commit 17231443a0)
2008-05-26 05:15:19 +02: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
Jelmer Vernooij
fb6fdfce37 Fix the build.
(This used to be commit f2e4974471)
2008-03-08 17:02:40 +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
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